function RulesEventHandlerEntityBundle::extractFormValues

Implements RulesEventHandlerInterface::extractFormValues().

Overrides RulesEventHandlerBase::extractFormValues

File

includes/rules.event.inc, line 371

Class

RulesEventHandlerEntityBundle
Exposes the bundle of an entity as event setting.

Code

public function extractFormValues(array &$form, array &$form_state) {
    $this->settings['bundle'] = !empty($form_state['values']['bundle']) ? $form_state['values']['bundle'] : NULL;
}