function rules_log_rule_is_evaluated in Rules 6
Checks if the given rule is currently evaluated.
Parameters
$name The name of the rule, which execution should be logged:
1 call to rules_log_rule_is_evaluated()
- rules_execute_rule in rules/
rules.module - Execution handler for rules
File
- rules/
rules.module, line 766 - Rules engine module
Code
function rules_log_rule_is_evaluated($rule) {
global $_rules_exec_log;
return is_array($_rules_exec_log) && isset($_rules_exec_log[$rule['#set']][$rule['#name']]);
}