[development] Setting menu trails by path - hook question

Dave Cohen drupal at dave-cohen.com
Tue Apr 1 17:30:09 UTC 2008


Try putting print statements in menu_set_location and menu_set_active_item 
(and possibly other places) to see if some module is calling this _after_ you 
call it.

And noone should be calling menu_set_location without reading: 
http://www.angrydonuts.com/menu_set_location_can_eat_my_sho

On Tuesday 01 April 2008, Domas Monkus wrote:
[snip]
> The same code works just fine if I put it into another module's page
> callback function. I guess, I could put the code into hook_nodeapi
> (just like menu trails module does), but I want this to work for all
> pages, not just nodes.
>
> Should I be using a different hook? Am I missing something else? Maybe
> there already is a solution to this problem?




More information about the development mailing list