| 5 menu.inc | menu_in_active_trail_in_submenu($mid, $pid) |
Returns TRUE when the menu item is in the active trail within a specific subsection of the menu tree.
Parameters
$mid: The menu item being considered.
$pid: The root of the subsection of the menu tree in which to look.
Related topics
1 call to menu_in_active_trail_in_submenu()
File
- includes/
menu.inc, line 573 - API for the Drupal menu system.
Code
function menu_in_active_trail_in_submenu($mid, $pid) {
$trail = _menu_get_active_trail_in_submenu($pid);
if (!$trail) {
return FALSE;
}
return in_array($mid, $trail);
}
Login or register to post comments