You are here

function _webform_views_options_submit in Webform 7.4

Submit handler for webform_views_options_form().

2 calls to _webform_views_options_submit()
webform_handler_field_submission_data::options_submit in views/webform_handler_field_submission_data.inc
Performs some cleanup tasks on the options array before saving it.
webform_handler_relationship_submission_data::options_submit in views/webform_handler_relationship_submission_data.inc
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.

File

views/webform.views.inc, line 727
Views hooks implemented for the Webform module.

Code

function _webform_views_options_submit(&$form, &$form_state) {

  // Save the NID as just the number instead of the title.
  $nid = preg_replace('/^.*?nid:([0-9]+).*?$/', '$1', $form_state['values']['options']['webform_nid']);
  $form_state['values']['options']['webform_nid'] = $nid;
}