function webform_template_submit in Webform Template 6
Same name and namespace in other branches
- 7.4 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_alter in ./
webform_template.module - Implements hook_form_alter().
File
- ./
webform_template.module, line 73
Code
function webform_template_submit($form, &$form_state) {
if (isset($form_state['values']['source']) && is_numeric($form_state['values']['source'])) {
$template = $form_state['values']['source'];
if (!empty($template)) {
$_SESSION['webform_template'] = $template;
}
}
}