menu_in_active_trail

Versions
5
menu_in_active_trail($mid)

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

Related topics

▾ 3 functions call menu_in_active_trail()

menu_primary_local_tasks in drupal-5/includes/menu.inc
Returns the rendered HTML of the primary local tasks.
menu_secondary_local_tasks in drupal-5/includes/menu.inc
Returns the rendered HTML of the secondary local tasks.
menu_tree in drupal-5/includes/menu.inc
Returns a rendered menu tree.

Code

drupal-5/includes/menu.inc, line 558

<?php
function menu_in_active_trail($mid) {
  $trail = _menu_get_active_trail();

  return in_array($mid, $trail);
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options