| 5 menu.inc | menu_in_active_trail($mid) |
Returns TRUE when the menu item is in the active trail.
Related topics
File
- includes/
menu.inc, line 558 - API for the Drupal menu system.
Code
<?php
function menu_in_active_trail($mid) {
$trail = _menu_get_active_trail();
return in_array($mid, $trail);
}
?>Login or register to post comments