function menu_node_submit in Drupal 7
Implements hook_node_submit().
See also
File
- modules/
menu/ menu.module, line 788 - Allows administrators to customize the site's navigation menus.
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']);
}
}