function hook_rules_event_set_alter

Alters event sets.

This hooks allows altering rules event sets, which contain all rules that are triggered upon a specific event. Rules internally caches all rules associated to an event in an event set, which is cached for fast evaluation. This hook is invoked just before any event set is cached, thus it allows altering of the to be executed rules without the changes to appear in the UI, e.g. to add a further condition to some rules.

Parameters

$event_name: The name of the event.

$event_set: The event set that is to be cached.

See also

rules_invoke_event()

Related topics

1 invocation of hook_rules_event_set_alter()
RulesEventSet::rebuildEventCache in includes/rules.plugins.inc
Rebuilds the event cache.

File

./rules.api.php, line 969

Code

function hook_rules_event_set_alter($event_name, RulesEventSet $event_set) {
}