function menu_node_edit_form_submit in Menu Node API 6
Custom form handler to react to menu changes.
1 string reference to 'menu_node_edit_form_submit'
- menu_node_form_menu_edit_item_alter in ./
menu_node.module - Implements hook_form_alter().
File
- ./
menu_node.module, line 262 - Menu Node API Manages relationships between the {node} and {menu_links} table.
Code
function menu_node_edit_form_submit($form, &$form_state) {
$menu = $form_state['values']['menu'];
// Is this a node item?
if (count($menu['parts']) == 2 && ($menu['parts'][0] = 'node' && is_numeric($menu['parts'][1]))) {
menu_node_save($menu['parts'][1], $menu['mlid']);
}
}