Override specific links in theme_links based on their class.

/ Published in: PHP
Save to your folder(s)

Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme.

From here on, you can add theme functions like your_theme_name_links_comment_add(), whom will render the specific links with the comment_add class.

URL: http://api.drupal.org/api/function/theme_links/5

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.