public function RulesAbstractPluginUI::form_extract_values in Rules 7.2
Parameters
array $form: The form array where to add the form.
array $form_state: The current form state.
Overrides RulesPluginUI::form_extract_values
File
- ui/
ui.core.inc, line 977 - Contains core Rules UI functions.
Class
- RulesAbstractPluginUI
- UI for abstract plugins (conditions & actions).
Code
public function form_extract_values($form, &$form_state) {
parent::form_extract_values($form, $form_state);
$form_values = RulesPluginUI::getFormStateValues($form, $form_state);
if ($this->element instanceof RulesCondition && isset($form_values['negate'])) {
$this->element
->negate($form_values['negate']);
}
}