Return to Snippet

Revision: 18403
at September 29, 2009 14:47 by ccalnan


Updated Code
$item = menu_get_item();
$item['href'] = 'node/{insert id here}';
menu_set_item(NULL, $item);

Revision: 18402
at September 29, 2009 14:46 by ccalnan


Initial Code
$item = menu_get_item();
$item['href'] = 'node/37'; // '/publications'...
menu_set_item(NULL, $item);

Initial URL


Initial Description
If you want to set the active menu trail in a node, simply add this to your template.php in the 'template preprocess node' function.

Initial Title
Set the active menu item

Initial Tags
drupal

Initial Language
PHP