Chris@0: /** Chris@0: * Implements hook_node_submit(). Chris@0: */ Chris@0: function {{ machine_name }}_node_submit($node, $form, &$form_state) { Chris@0: // Decompose the selected menu parent option into 'menu_name' and 'plid', if Chris@0: // the form used the default parent selection widget. Chris@0: if (!empty($form_state['values']['menu']['parent'])) { Chris@0: list($node->menu['menu_name'], $node->menu['plid']) = explode(':', $form_state['values']['menu']['parent']); Chris@0: } Chris@0: }