function RulesEventHandlerBase::extractFormValues

Implements RulesEventHandlerInterface::extractFormValues().

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;
    }
}