You are here

function commerce_webform_configure_submit in Commerce Webform 8

Same name and namespace in other branches
  1. 7.2 commerce_webform.module \commerce_webform_configure_submit()
  2. 7 commerce_webform.module \commerce_webform_configure_submit()

Submit handler for webform_configure_form(). Add the extra commerce webform configuration options.

1 string reference to 'commerce_webform_configure_submit'
commerce_webform_form_webform_configure_form_alter in ./commerce_webform.module
Implements hook_form_FORM_ID_alter(). Add commerce webform items to Form Settings page.

File

./commerce_webform.module, line 568
Commerce Webform module file

Code

function commerce_webform_configure_submit($form, &$form_state) {

  // Edit the node by reference just to shorten it up.
  $node =& $form['#node'];

  // Save the commerce_webform configuration.
  $node->webform['commerce_webform_new_order'] = $form_state['values']['commerce_webform_new_order'];
}