1 menu.module _menu_parent_depth_limit($item)

Find the depth limit for items in the parent select.

File

core/modules/menu/menu.module, line 685
Allows administrators to customize the site's 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);
}