_menu_parent_depth_limit
function _menu_parent_depth_limit
_menu_parent_depth_limit($item)
Find the depth limit for items in the parent select.
File
- modules/menu/menu.module, line 615
- Allows administrators to customize the site's navigation menus.
Code
function _menu_parent_depth_limit($item) { return MENU_MAX_DEPTH - 1 - (($item['mlid'] && $item['has_children']) ? menu_link_children_relative_depth($item) : 0); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!menu!menu.module/function/_menu_parent_depth_limit/7.x