You are here

public function FormBuilderElementBase::configurationSubmit in Form Builder 7

Submit handler for the configuration form.

Overrides FormBuilderElementInterface::configurationSubmit

1 call to FormBuilderElementBase::configurationSubmit()
FormBuilderWebformHiddenElement::configurationSubmit in modules/webform/form_builder_webform.classes.inc
Submit handler for the configuration form.
1 method overrides FormBuilderElementBase::configurationSubmit()
FormBuilderWebformHiddenElement::configurationSubmit in modules/webform/form_builder_webform.classes.inc
Submit handler for the configuration form.

File

./form_builder.classes.inc, line 888

Class

FormBuilderElementBase

Code

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

  // Allow each property to do any necessary submission handling.
  foreach ($this
    ->getProperties() as $property) {
    $property
      ->submit($form, $form_state);
  }

  // Update the field according to the settings in $form_state['values'].
  $saveable = $this
    ->getSaveableProperties();
  foreach ($form_state['values'] as $property => $value) {
    if (in_array($property, $saveable, TRUE)) {
      $this
        ->setProperty($property, $value);
    }
  }
}