menu_in_active_trail_in_submenu
includes/menu.inc, строка 573
- Версии
- 5
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.
Параметры
$mid
The menu item being considered.
$pid
The root of the subsection of the menu tree in which to look.
Связанные темы
Код
<?php
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);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии