By themoebius on
In node.tpl.php this is the standard code for the links at the bottom:
<?php
if ($links) {
print $links;
}
?>
I've seen a few examples that use regular expressions to modify the value of $links, but really, I'm wondering where $links is formed in the first place.... Can I write a template.php function to override that so I can put it together myself? Where can I find the default code that does this so I can use it as a starting point?
Thanks.
Comments
Since Drupal 5 you can now
Since Drupal 5 you can now theme the links using the theme_links() function. Add it to your themes template.php and whilst in the foreach() loop, check for certain links and if you get a match, modify them.
--
Ixis (UK) providing Drupal consultancy and Drupal theme design. Check the portfolio.
--
Ixis (UK): Drupal support, Drupal hosting.
drupalcodesearch.com might be helpful
http://www.drupalcodesearch.com/code?q=links&version=5&language=1&search...