Hello,

I had to insert this code to make it work for other menus:

if (menu_get_active_menu_name() == 'navigation') {
$item = menu_get_item();
$mlink = db_fetch_object(db_query("SELECT * FROM {menu_links} WHERE link_path = '%s'", $item['href']));
if ($mlink && isset($mlink->menu_name)) {
$mySiteActiveMenuName = $mlink->menu_name;
}
}

and use the $mySiteActiveMenuName variable as:

if (in_array($link['menu_name'], array(
variable_get('menu_primary_links_source', 'primary-links'),
variable_get('menu_secondary_links_source', 'secondary-links'),
$mySiteActiveMenuName,
)) && !in_array($link['menu_name'], array_values(array_filter(variable_get('local_menu_exclusions', array(null)))))) {
break;
}

Comments

mattbless’s picture

Title: Local Menu not showing for other than primary links menu » Local Menu not showing for primary links menu
Priority: Normal » Major

My problem is localmenu is not showing for primary links but works fine for others.

nestor.mata’s picture

Please take a look at the patch in this issue #575930: Multiple menu entires feature break local menu with non-standard menu use I think it is the correct patch for your issue.