Same name and namespace in other branches
  1. 4.6.x includes/menu.inc \menu_in_active_trail()
  2. 4.7.x includes/menu.inc \menu_in_active_trail()

Returns TRUE when the menu item is in the active trail.

Related topics

3 calls to menu_in_active_trail()
menu_primary_local_tasks in includes/menu.inc
Returns the rendered HTML of the primary local tasks.
menu_secondary_local_tasks in includes/menu.inc
Returns the rendered HTML of the secondary local tasks.
menu_tree in includes/menu.inc
Returns a rendered menu tree.

File

includes/menu.inc, line 558
API for the Drupal menu system.

Code

function menu_in_active_trail($mid) {
  $trail = _menu_get_active_trail();
  return in_array($mid, $trail);
}