function rules_item_rule_set_import in Rules 6
Item type callback: Customize to be imported rule sets
File
- rules_admin/
rules_admin.export.inc, line 72
Code
function rules_item_rule_set_import(&$name, &$rule_set) {
if (!isset($rule_set['status']) || $rule_set['status'] == 'default') {
$sets = rules_get_configured_items('rule_sets');
if (!isset($sets[$name])) {
// This default rule set doesn't exist on this system, so we make it custom
$rule_set['status'] = 'custom';
}
}
}