function rules_test_condition_true

Condition implementation returning true.

File

tests/rules_test.rules.inc, line 80

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;
}