function rules_get_event_sets in Rules 6
Returns info about all events prefixed with 'event_' to be a set.
3 calls to rules_get_event_sets()
- rules_admin_form_rule_settings in rules_admin/
rules_admin.rule_forms.inc - Returns the form for the settings of a rule
- rules_get_rule_sets in rules/
rules.module - Returns info about all rule sets, which includes events prefixed with 'event_'.
- theme_rules_admin_rule_render in rules_admin/
rules_admin.render.inc - Adds surrounding elements like headlines for conditions and actions and renders the rule
File
- rules/
rules.module, line 85 - Rules engine module
Code
function rules_get_event_sets() {
$sets = array();
foreach (rules_get_events() as $name => $info) {
$sets['event_' . $name] = $info;
}
return $sets;
}