function RulesEventHandlerBase::extractFormValues

Implements RulesEventHandlerInterface::extractFormValues().

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: An associative array containing the current state of the form.

Overrides RulesEventHandlerInterface::extractFormValues

1 method overrides RulesEventHandlerBase::extractFormValues()
RulesEventHandlerEntityBundle::extractFormValues in includes/rules.event.inc
Implements RulesEventHandlerInterface::extractFormValues().

File

includes/rules.event.inc, line 237

Class

RulesEventHandlerBase
Base class for event handler.

Code

public function extractFormValues(array &$form, array &$form_state) {
  foreach ($this->getDefaults() as $key => $setting) {
    $this->settings[$key] = isset($form_state['values'][$key]) ? $form_state['values'][$key] : $setting;
  }
}