Timeline for How can I hide the primary menu block to certain pages using PHP?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 28, 2015 at 18:25 | history | edited | avpaderno♦ |
edited tags
|
|
Aug 28, 2013 at 11:02 | history | edited | Mołot | CC BY-SA 3.0 |
added image formatting
|
Oct 6, 2011 at 10:42 | vote | accept | Gopipuli | ||
Oct 6, 2011 at 10:00 | history | edited | Gopipuli | CC BY-SA 3.0 |
deleted 65 characters in body
|
Oct 6, 2011 at 6:48 | history | edited | Gopipuli | CC BY-SA 3.0 |
added 44 characters in body; edited tags
|
Oct 4, 2011 at 21:27 | history | migrated | from stackoverflow.com (revisions) | ||
Oct 4, 2011 at 13:13 | comment | added | Pierre Buyle | "if ($node = menu_get_object()) { ...do something with $node... }" instead of "if (arg(0) == 'node' && is_numeric(arg(1))) { $nid = arg(1); $node = node_load(array('nid' => $nid)); ...do something with $node... }". | |
Oct 4, 2011 at 9:54 | comment | added | Gopipuli | can you show how to use menu_get_object() with the above code ? | |
Oct 4, 2011 at 7:47 | comment | added | Pierre Buyle | Don't use arg(1) to load the node, trust the API and use menu_get_object(). api.drupal.org/api/drupal/includes--menu.inc/function/…. Also, why is this tagged as "drupal-theming", block visibility is not a theming concern, or at least it shouldn't be. | |
Oct 4, 2011 at 7:05 | answer | added | maged adel | timeline score: 2 | |
Oct 4, 2011 at 7:00 | history | asked | Gopipuli | CC BY-SA 3.0 |