1 Jul
2006
1 Jul
'06
9:54 a.m.
Hello, I see many implementations of hook_block who declare global $user but none with global $node I tried it but $node is still not set, so I cannot access the node object directly. the solution would be to do like in book_hook() and check on arg(): if (arg(0) == 'node' && is_numeric(arg(1))) but it looks like a hack and for what I have in mind, it makes things more complicated. Isn't there a possibility to have directly access to the $node object? How? thanks, Augustin. -- http://www.wechange.org/ Because we and the world need to change. http://www.reuniting.info/ Intimate Relationships, peace and harmony in the couple.