You are here

public function FormBuilderWebformPropertyOptions::submit in Form Builder 7

Submit handler for the editing form().

This function is responsible to store the new value into the $form_state. The value must be located at $form_state['values'][$property].

Parameters

array $form_state: Form API form_state of the field configure form.

Overrides FormBuilderPropertyBase::submit

File

modules/webform/form_builder_webform.classes.inc, line 279

Class

FormBuilderWebformPropertyOptions
Special handling for $component['options'].

Code

public function submit($form, &$form_state) {

  // Webform needs the options to be saved as text.
  $options = $form_state['values']['options']['options_field'];
  parent::submit($form, $form_state);
  $form_state['values']['options'] = $options;
}