function _menu_link_parents_set


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 _menu_link_parents_set(&$item, $parent)
cle7 _menu_link_parents_set(&$item, $parent)
elmsmedia7 _menu_link_parents_set(&$item, $parent)
icor7 _menu_link_parents_set(&$item, $parent)
meedjum_blog7 _menu_link_parents_set(&$item, $parent)
mooc7 _menu_link_parents_set(&$item, $parent)

Sets the p1 through p9 values for a menu link being saved.

Related topics

1 call to _menu_link_parents_set()
menu_link_save in includes/
Saves a menu link.


includes/, line 3527
API for the Drupal menu system.


function _menu_link_parents_set(&$item, $parent) {
  $i = 1;
  while ($i < $item['depth']) {
    $p = 'p' . $i++;
    $item[$p] = $parent[$p];
  $p = 'p' . $i++;
  // The parent (p1 - p9) corresponding to the depth always equals the mlid.
  $item[$p] = $item['mlid'];
  while ($i <= MENU_MAX_DEPTH) {
    $p = 'p' . $i++;
    $item[$p] = 0;