I'm currently using the area_banner module together with the jQuery-menu module on a 3-lingual website.
The problem is that when I have a jQuery menu block enabled, my area banner stops working(in the sense that it can't determine the active menu anymore).
I've tracked down the problem to the 1st line in jqmenu_trail_creator():
$activetrail = menu_get_active_trail();
Commenting this line out fixes the area banner problem, but off course removes active classes of my jQmenu.
I already gave the jQuery-menu a bigger weight then the area_banner, but still doesn't help.
This is where area banner stops working;
$tmp_menu = menu_get_active_menu_name();
menu_set_active_menu_name(variable_get('area_banner_active_menu',''));
$active_trail = menu_get_active_trail();
menu_set_active_menu_name($tmp_menu);
As you can see, the same function is being called, only this time the result is screwed over.
jQmenu and Area banner both reset the active menu after they've done menu_get_active_trail() (jQmenu does this in jquerymenu_block() where it calls jqmenu_trail_creator()) , but calling it a second time fails for some reason.
I could really use a patch for this, but I'm not sure on how to solve it ...
Comments
Comment #1
pat redmond commentedThis code doesn't seem to change the active trail, so I'm not sure that it is causing the problem. Either way, I will wait to hear if this is still a problem before I look at fixing it.