You are here

function rules_test_condition_true in Rules 7.2

Condition implementation returning true.

File

tests/rules_test.rules.inc, line 79
Includes any rules integration provided by the module.

Code

function rules_test_condition_true($settings, $state, $element) {
  if (!$element instanceof RulesCondition) {
    throw new Exception('Rules element has not been passed to condition.');
  }
  rules_log('condition true called');
  return TRUE;
}