Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function menu_node_submit

Implements hook_node_submit().

See also

menu_form_node_form_alter()

File

modules/menu/menu.module, line 788

Code

function menu_node_submit ($node, $form, $form_state) {
 // Decompose the selected menu parent option into 'menu_name' and 'plid', if
 // the form used the default parent selection widget.
 if (!empty($form_state['values']['menu']['parent'])) {
 list($node->menu ['menu_name'], $node->menu ['plid']) = explode (':', $form_state['values']['menu']['parent']);
 }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.