You are here

function rules_log_evaluation_clear in Rules 6

Clears the rule evaluation log for the given rule set.

1 call to rules_log_evaluation_clear()
rules_evaluate_rule_set in rules/rules.module
Evaluates the configured rules for the given rule set and evaluation state. This is used, when rule sets are invoked by action. So the action can set up a new state, working with the same variables. So the original execution state can take over…

File

rules/rules.module, line 752
Rules engine module

Code

function rules_log_evaluation_clear($set_name) {
  global $_rules_exec_log;
  foreach ($_rules_exec_log[$set_name] as $rule => $count) {
    $_rules_exec_log[$set_name][$rule] = $count - 1;
  }
  $_rules_exec_log[$set_name] = array_filter($_rules_exec_log[$set_name]);
}