You are here

protected function RulesConditional::call_else in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RulesConditional::call_else()

Adds an "else" statement, for use with magic call.

File

includes/rules_conditional.plugin.inc, line 53
Rules plugin implementation.

Class

RulesConditional
Default if-else conditional statement.

Code

protected function call_else() {
  $this->fluentElement = $element = rules_conditional_else();
  $element
    ->setParent($this);
  return $this;
}