function _menu_parent_depth_limit
Same name and namespace in other branches
- 6.x drupal-6.x/modules/menu/menu.module \_menu_parent_depth_limit()
Find the depth limit for items in the parent select.
2 calls to _menu_parent_depth_limit()
- menu_node_prepare in drupal-7.x/
modules/ menu/ menu.module - Implements hook_node_prepare().
- _menu_get_options in drupal-7.x/
modules/ menu/ menu.module - Helper function to get the items of the given menu.
Archivo
- drupal-7.x/
modules/ menu/ menu.module, line 615 - Allows administrators to customize the site's navigation menus.
Código
function _menu_parent_depth_limit($item) {
return MENU_MAX_DEPTH - 1 - (($item['mlid'] && $item['has_children']) ? menu_link_children_relative_depth($item) : 0);
}