Timeline for How to get node id on hook_page_build(&$page)
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 25, 2012 at 6:02 | comment | added | mohit_rocks | Avoid use of this function where possible, as resulting code is hard to read. In menu callback functions, attempt to use named arguments. See the explanation in menu.inc for how to construct callbacks that take arguments. When attempting to use this function to load an element from the current path, e.g. loading the node on a node page, use menu_get_object() instead. api.drupal.org/api/drupal/includes!bootstrap.inc/function/arg/7 | |
Oct 25, 2012 at 5:55 | comment | added | Webdrips | Why not use arg() in D7? Do you have a link you can share? Thx. | |
Oct 25, 2012 at 4:51 | history | answered | Gabor Szanto | CC BY-SA 3.0 |