function rules_invoke_event in Rules 6
Same name and namespace in other branches
- 7.2 rules.module \rules_invoke_event()
Invokes configured rules for the given event
Parameters
$event_name: The events name
$args: Pass further arguments as defined in hook_rules_event_info() for this event. Arguments can be passed as usual, one by one, in the order as defined in hook_rules_event_info(). As an alternative the arguments can also be passed as an array, with the argument names as keys. See http://drupal.org/node/298549.
7 calls to rules_invoke_event()
- rules_comment in rules/
modules/ rules.events.inc - Implementation of hook_comment().
- rules_cron in rules/
modules/ rules.events.inc - Implementation of hook_cron().
- rules_forms_invoke_event in rules_forms/
rules_forms.module - Invoke rules event of a certain type.
- rules_init in rules/
modules/ rules.events.inc - Implementation of hook_init().
- rules_nodeapi in rules/
modules/ rules.events.inc - Implementation of hook_nodeapi().
File
- rules/
rules.module, line 253 - Rules engine module
Code
function rules_invoke_event() {
$args = func_get_args();
$args[0] = 'event_' . $args[0];
call_user_func_array('rules_invoke_rule_set', $args);
}