// Override $links output // NOTE: change function name to match theme name eg. change mbacc_links to chameleon_links if using the chameleon theme function amword_links($links, $delimiter = ' | ') { if (!is_array($links)) { return ''; } /* Maps a link to it's associated class */ $link_to_id = array( t('add new comment') => 'comment', t('printer friendly version') => 'print', t('email this page') => 'email', t('delete') => 'delete', t('edit') => 'edit', t('reply') => 'reply', t('calendar') => 'calendar', ); $new_links = array(); foreach ($links as $link) { foreach ($link_to_id as $text => $id) { if (strpos($link, $text)) { $link = str_replace('