You are here

function webform_form_submit in Webform 7.4

Same name and namespace in other branches
  1. 5.2 webform.module \webform_form_submit()
  2. 6.3 webform.module \webform_form_submit()
  3. 6.2 webform.module \webform_form_submit()
  4. 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 1963
This module provides a simple way to create forms and questionnaires.

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';
}