b04ec0cfd31bdc95c8fc616ac6e5fce0dae07bfc
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / node_submit.twig
1 /**
2  * Implements hook_node_submit().
3  */
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']);
9   }
10 }