function Rule::condition

Adds a condition.

Pass either an instance of the RulesConditionInterface or the arguments as needed by rules_condition().

Return value

$this

File

includes/rules.plugins.inc, line 231

Class

Rule
An actual rule.

Code

public function condition($name, $settings = array()) {
    $this->conditions
        ->condition($name, $settings);
    return $this;
}