function hs_menu_node_form_submit in Hierarchical Select 7.3
Submit callback; node edit form.
1 string reference to 'hs_menu_node_form_submit'
- hs_menu_form_node_form_alter in modules/
hs_menu.module - Implements hook_form_FORMID_alter().
File
- modules/
hs_menu.module, line 88 - Implementation of the Hierarchical Select API for the Menu module.
Code
function hs_menu_node_form_submit(&$form, &$form_state) {
// Don't return an array, but a single item.
$form_state['values']['menu']['parent'] = $form_state['values']['menu']['parent'][0];
}