Add .active class when certain view is executed using hook_menu I have a view that is not related with a menu but I need to add .active class to an element of this menu when the view is shown. How can I alter the element adding a class active?
You can use the Context module for this. Context is capable of adding active classes to menu items based on conditions, e.g. path, content type, etc.