_menu_parent_depth_limit

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 _menu_parent_depth_limit($item)

Find the depth limit for items in the parent select.

▾ 2 functions call _menu_parent_depth_limit()

menu_nodeapi in modules/menu/menu.module
Implementation of 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.

Code

modules/menu/menu.module, line 353

<?php
function _menu_parent_depth_limit($item) {
  return MENU_MAX_DEPTH - 1 - (($item['mlid'] && $item['has_children']) ? menu_link_children_relative_depth($item) : 0);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen