Posted By

ccalnan on 09/29/09



Versions (?)

Set the active menu item

 / Published in: PHP

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.

  1. $item = menu_get_item();
  2. $item['href'] = 'node/{insert id here}';
  3. menu_set_item(NULL, $item);

Report this snippet  

You need to login to post a comment.