public function Rule::condition in Rules 7.2
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 - Contains plugin info and implementations not needed for rule evaluation.
Class
- Rule
- An actual rule.
Code
public function condition($name, $settings = array()) {
$this->conditions
->condition($name, $settings);
return $this;
}