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