You are here

public function RulesListConditionsUI::form in Rules List Conditions 7

Add negate checkbox.

Overrides RulesLoopUI::form

File

includes/rules_list_conditions.ui.inc, line 16
UI for Any and All loops.

Class

RulesListConditionsUI
UI for Rules Any and All loops.

Code

public function form(&$form, &$form_state, $options = array(), $iterator = NULL) {
  parent::form($form, $form_state, $options);
  $form['negate'] = array(
    '#title' => t('Negate'),
    '#type' => 'checkbox',
    '#description' => t('If checked, the loop result is negated such that it returns TRUE if the loop evaluates to FALSE.'),
    '#default_value' => $this->element
      ->isNegated(),
    '#weight' => 9,
  );
}