_menu_parent_depth_limit

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/menu/menu.module, строка 352

Версии
6
_menu_parent_depth_limit($item)

Find the depth limit for items in the parent select.

▾ 2 функции вызывают _menu_parent_depth_limit()

menu_nodeapi in modules/menu/menu.module
Реализация hook_nodeapi().
menu_parent_options in modules/menu/menu.module
Return a list of menu items that are valid possible parents for the given menu item.

Код

<?php
function _menu_parent_depth_limit($item) {
  return MENU_MAX_DEPTH - 1 - (($item['mlid'] && $item['has_children']) ? menu_link_children_relative_depth($item) : 0);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему