function nodehierarchy_form_menu_edit_item_submit in Node Hierarchy 6.3
Same name and namespace in other branches
- 6.2 nodehierarchy.module \nodehierarchy_form_menu_edit_item_submit()
- 7.4 nodehierarchy.module \nodehierarchy_form_menu_edit_item_submit()
- 7.2 nodehierarchy.module \nodehierarchy_form_menu_edit_item_submit()
Submit the menu_edit_item form.
1 string reference to 'nodehierarchy_form_menu_edit_item_submit'
- nodehierarchy_form_menu_edit_item_alter in ./
nodehierarchy.module - Implementation of hook_form_menu_edit_item_alter().
File
- ./
nodehierarchy.module, line 424 - A module to make nodes hierarchical.
Code
function nodehierarchy_form_menu_edit_item_submit($form, &$form_state) {
// Menu name and parent are in two different fields after our alter, so we glue them back together.
$form_state['values']['menu']['parent'] = $form_state['values']['menu']['menu_name'] . ':' . _nodehierarchy_get_node_mlid($form_state['values']['menu']['pnid'], TRUE);
}