You are here

function rules_conditional_if in Conditional Rules 7

Same name and namespace in other branches
  1. 8 rules_conditional.module \rules_conditional_if()

Creates an "if".

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

File

./rules_conditional.module, line 30
Main module file.

Code

function rules_conditional_if($predicate, array $settings = array()) {
  return new RulesConditionalIf($predicate, $settings);
}