You are here

public function RulesConditionalPredicateUI::form_submit in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.ui.inc \RulesConditionalPredicateUI::form_submit()

Delegates the form submit handler to the predicate.

Overrides RulesPluginUI::form_submit

File

includes/rules_conditional.ui.inc, line 112
Plugin UI implementation.

Class

RulesConditionalPredicateUI
UI for configuring the predicate in a conditional branch.

Code

public function form_submit($form, &$form_state) {
  if (isset($this->predicate)) {

    // Handle form submission for predicate.
    $form_state['rules_element'] = $this->predicate;
    $this->predicate
      ->form_submit($form, $form_state);
  }
}