function webform_template_submit in Webform Template 7.4
Same name and namespace in other branches
- 6 webform_template.module \webform_template_submit()
- 7 webform_template.module \webform_template_submit()
Form submission handler for node forms.
1 string reference to 'webform_template_submit'
- webform_template_form_node_form_alter in ./
webform_template.module - Implements hook_node_form_alter().
File
- ./
webform_template.module, line 125 - The main module file for webform template.
Code
function webform_template_submit($form, &$form_state) {
if (isset($form_state['complete form']['webform_template']['source']['#value'])) {
$template = $form_state['complete form']['webform_template']['source']['#value'];
if (!empty($template)) {
$form_state['node']->webform_template = $template;
}
}
}