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