function rules_get_items in Rules 6
Returns info about all defined items
11 calls to rules_get_items()
- rules_admin_export_by_category in rules_admin/
rules_admin.export.inc - Adds in the rule items for the given tags.
- rules_admin_form_export in rules_admin/
rules_admin.export.inc - Exports one or more configurations
- rules_admin_menu in rules_admin/
rules_admin.module - Implementation of hook_menu().
- rules_admin_validate_machine_name in rules_admin/
rules_admin.module - Validate the machine name.
- rules_enable_items in rules/
rules.module - Used to inform the rules engine about an added item type, so it can create the db table if necessary
File
- rules/
rules.module, line 30 - Rules engine module
Code
function rules_get_items($key = 'all') {
// During module installation, the hook implementation of rules is not invoked,
// as the module is not yet active. So we force it here to always return our own item infos.
if (module_exists('rules')) {
return rules_gather_data('rules_item_info', $key);
}
else {
$info = rules_rules_item_info();
return $key == 'all' ? $info : $info[$key];
}
}