function rules_import_hook in Rules 6
Calls the import hook to allow modules to react on the import.
1 call to rules_import_hook()
- rules_item_rule_import in rules_admin/
rules_admin.export.inc - Item type callback: Customize to be imported rules
1 string reference to 'rules_import_hook'
- rules_get_item_defaults in rules/
rules.module - Returns all defined item defaults $item_type Which defaults to return, e.g. 'rules', 'rule_sets' or 'states'
File
- rules/
rules.module, line 1106 - Rules engine module
Code
function rules_import_hook($rule) {
foreach (module_implements('rules_import') as $module) {
$function = $module . '_rules_import';
$function($rule);
}
return $rule;
}