[development] Howto: Override $node_url in theme
nan_wich at bellsouth.net
nan_wich at bellsouth.net
Fri Jul 24 16:40:13 UTC 2009
My module implements template_preprocess_hook, but when it fires, the $variables['node_url'] is not set yet. I have gone through the themong guide and tried just about every preprocess hook there is and none of them has that variable set when I get control.
It is set in theme.inc in template_preprocess_node, without regard as to whether or not it is already set. I even tried mymodule_preprocess_node, and it is still not set there.
The problem may be because my module's weight is -2 due to a timing problem with the user module. So I am probably getting called before node.module too.
So how can I change that value?
--
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090724/adeacb61/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 4752 bytes
Desc: spring_01.gif
URL: <http://lists.drupal.org/pipermail/development/attachments/20090724/adeacb61/attachment-0001.gif>
More information about the development
mailing list