You are here

public function RulesConditionalIf::pluginLabel in Conditional Rules 7

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

Overrides RulesConditionalPredicateElement::pluginLabel

File

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

Class

RulesConditionalIf
The "if" clause.

Code

public function pluginLabel() {
  $previous = $this
    ->getPreviousSibling();
  if ($previous && $previous instanceof RulesConditionalIf) {
    return t('(Else) If', array(), array(
      'context' => 'conditional rules',
    ));
  }
  else {
    return parent::pluginLabel();
  }
}