public function RulesEventHandlerEntityBundle::extractFormValues in Rules 7.2
Implements RulesEventHandlerInterface::extractFormValues().
Overrides RulesEventHandlerBase::extractFormValues
File
- includes/
rules.event.inc, line 371 - Contains event handler interface and base classes.
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;
}