function _advanced_menu_submenu_is_active in Advanced Menu 7
Helper function to determine if the given items are in the active menu path.
1 call to _advanced_menu_submenu_is_active()
- _advanced_menu_submenu_trees in submenu/
advanced_menu_submenu.module - Helper function to build out sub-menus for block display.
File
- submenu/
advanced_menu_submenu.module, line 261 - Provides advanced menu submenus.
Code
function _advanced_menu_submenu_is_active($new_item) {
$is_active = FALSE;
foreach ($new_item as $item) {
if (is_array($item)) {
if (isset($item['#original_link']) && $item['#original_link']['in_active_trail'] == 1) {
$is_active = TRUE;
}
}
}
return $is_active;
}