function RulesReactionRuleUI::settingsForm
Adds the configuration settings form (label, tags, description, ..).
Overrides RulesPluginUI::settingsForm
File
-
ui/
ui.plugins.inc, line 156
Class
- RulesReactionRuleUI
- Reaction rule specific UI.
Code
public function settingsForm(&$form, &$form_state) {
parent::settingsForm($form, $form_state);
$form['settings']['active'] = array(
'#type' => 'checkbox',
'#title' => t('Active'),
'#default_value' => !isset($this->rule->active) || $this->rule->active,
);
$form['settings']['weight'] = array(
'#type' => 'weight',
'#title' => t('Weight'),
'#default_value' => $this->element->weight,
'#weight' => 5,
'#delta' => 10,
'#description' => t('Order rules that react on the same event. Rules with a higher weight are evaluated after rules with less weight.'),
);
unset($form['settings']['component_provides']);
}