function webform_form_submit in Webform 6.3
Same name and namespace in other branches
- 5.2 webform.module \webform_form_submit()
- 6.2 webform.module \webform_form_submit()
- 7.4 webform.module \webform_form_submit()
- 7.3 webform.module \webform_form_submit()
Submit handler for the webform node form.
Redirect the user to the components form on new node inserts. Note that this fires after the hook_submit() function above.
1 string reference to 'webform_form_submit'
- webform_form_alter in ./
webform.module - Implements hook_form_alter().
File
- ./
webform.module, line 1302
Code
function webform_form_submit($form, &$form_state) {
drupal_set_message(t('The new webform %title has been created. Add new fields to your webform with the form below.', array(
'%title' => $form_state['values']['title'],
)));
$form_state['redirect'] = 'node/' . $form_state['nid'] . '/webform/components';
}