You are here

protected function RulesConditional::call_if in Conditional Rules 7

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

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

1 call to RulesConditional::call_if()
RulesConditional::call_elseIf in includes/rules_conditional.plugin.inc
Adds an "if" as an "else if" statement, for use with magic call.

File

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

Class

RulesConditional
Default if-else conditional statement.

Code

protected function call_if($predicate, array $settings = array()) {
  $this->fluentElement = $element = rules_conditional_if($predicate, $settings);
  $element
    ->setParent($this);
  return $this;
}