Running on Drupal 6.x
I was doing some mucking around in code with the menu functions and now all of a sudden the system seems to *always* think the active menu name is "navigation".
Shouldn't clicking on a primary link set the active menu name to "primary-links" ? for some reason it continously returns navigation now and it's killing a module that I had developed.
I can fix this issue by manually adding a set_active_menu_name('primary-links'); call into my module but this was never required before when it was working and I assume the system was correctly defining the active menu as primary links before I started meddling with some menu api calls. It seems broken now since it continually returns navigation as the active menu name even when I'm clicking through my primary-links.
Any help is greatly appreciated!
Comments
Found the solution! Ignore.
Found the solution!
Ignore. Thanks anyhow!
The solution?
Can you please tell me how you fixed this since I'm in the same struggle as you?
Thanks
/ronnil
Yes, i have this problem
Yes, i have this problem :(
My solution - little hack
But it is bad for upgrade Drupal (currently have 6.2)
An alternate solution (that
An alternate solution (that worked in my case anyway) was to implement the following via a custom module. The advantage is that no core-hacking is needed: