You are here

protected function RulesConditionalIf::exportPredicate in Conditional Rules 7

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

Exports predicate.

Overrides RulesConditionalPredicateElement::exportPredicate

File

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

Class

RulesConditionalIf
The "if" clause.

Code

protected function exportPredicate($key = NULL) {
  if ($this
    ->getPreviousSibling()) {
    $key = 'ELSE IF';
  }
  return parent::exportPredicate($key);
}