1 menu.module menu_node_submit(Node $node, $form, $form_state)

Implements hook_node_submit().

See also

menu_form_node_form_alter()

File

core/modules/menu/menu.module, line 842
Allows administrators to customize the site's menus.

Code

function menu_node_submit(Node $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']);
  }
}