[development] Drupal 6.x hook_menu question regarding use of wildcards

Karoly Negyesi karoly at negyesi.net
Fri Feb 15 13:58:46 UTC 2008

'page arguments' => array(3)->nid,

Sorry. You need to take the node. There is not really another way. I believe that's not that big of a problem -- take the node as argument and use $node->nid in place.

If you really really need the nid then use %node_nid and then
a)  node_nid_load does a node_load and returns the nid
b) need an access callback which takes a nid , loads it again (yeah...) and calls node_access on that.



More information about the development mailing list