function rules_get_rule_sets in Rules 6
Returns info about all rule sets, which includes events prefixed with 'event_'.
Parameters
$key If given, only the info about this rule set will be returned.:
8 calls to rules_get_rule_sets()
- rules_admin_fix_breadcrumb in rules_admin/
rules_admin.inc - Fixes the breadcrumb on the rule edit/delete/revert
- rules_admin_get_compatible_sets in rules_admin/
rules_admin.inc - Gets all compatible sets, which means that all arguments are available in the other set too
- rules_admin_overview_table in rules_admin/
rules_admin.inc - Returns a table of rules filtered by the given parameters
- rules_admin_rule_proxy::get_set_info in rules_admin/
rules_admin.rule_proxy.inc - Gets the info about the set of this rule
- rules_get_rule_set in rules/
rules.module - Returns the rule set $set_name, which includes the set info and the rules. To improve performance rule sets are cached.
File
- rules/
rules.module, line 77 - Rules engine module
Code
function rules_get_rule_sets($key = NULL) {
$sets = rules_get_event_sets() + rules_get_configured_items('rule_sets');
return isset($key) ? isset($sets[$key]) ? $sets[$key] : NULL : $sets;
}