You are here

public function RulesReactionRuleUI::settingsForm in Rules 7.2

Adds the configuration settings form (label, tags, description, ..).

Overrides RulesPluginUI::settingsForm

File

ui/ui.plugins.inc, line 156
Contains UI for diverse plugins provided by Rules.

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']);
}