By netentropy on
I have been reading over this node
how would it be different for drupal 6
thanks, i am just not sure what replaces
_phptemplate_callback
I have been reading over this node
how would it be different for drupal 6
thanks, i am just not sure what replaces
_phptemplate_callback
Comments
subscribing
subscribing
ReAliTy iS JuST a DrEAm. HaCk ThE PLaNet!
_
I alter links by inserting the following into the template.php file for the theme:
You can also do it in a custom module with hook_link_alter.
It works for removing
It works for removing unwanted links with unset(), however for some reason it blanks out the attributes passed to it by other modules (such as comments and calendar). Specifically, untouched 'ul' tags are stripped of the class="links" attribute. Here's my code in template.php:
It removes the links just fine but messes up display on Calendar and Comments (among others).
It works when I put it in a custom module, like so:
The inner workings of this escape me, because I've tried passing $links by reference (&$links) in template.php and it didn't work. Only the module way seemed to be possible. Why is that?
@talino,WorldFallz wrong func
@talino,WorldFallz
wrong
correct
Thanks a lot, works with me
Thanks a lot, works with me perfect.