I’ am trying to make a custom module to set an active trail path to a menu. I created a views page. The active trail must be to a node or taxonmy term. When I open the pages created by the view the active trail is not active.
I wrote the script here below but it doesn’t work, can somebody please help???
function mymodule_views_default_views(&$view, &$display_id, &$args){ if( $view->name = 'productdetail';) {menu_tree_set_path('menu-categorie', 'node/39'); } }