function RulesRuleUI::form_extract_values
Applies the values of the form to the rule configuration.
Overrides RulesContainerPluginUI::form_extract_values
File
-
ui/
ui.plugins.inc, line 68
Class
- RulesRuleUI
- Rule specific UI.
Code
public function form_extract_values($form, &$form_state) {
$form_values = RulesPluginUI::getFormStateValues($form, $form_state);
// Run condition and action container value extraction.
if (isset($form['conditions'])) {
$this->conditions
->extender('RulesConditionContainerUI')
->form_extract_values($form['conditions'], $form_state);
}
if (!empty($form_values['label'])) {
$this->element->label = $form_values['label'];
}
parent::form_extract_values($form, $form_state);
}