function rules_export_items in Rules 6
Export all items given, where $export has to be an array of arrays keyed by item types, containing the items keyed by their names.
2 calls to rules_export_items()
- rules_admin_form_export_submit in rules_admin/
rules_admin.export.inc - rules_categories_features_export_render in rules/
rules.export.inc - Implementation of hook_features_export_render() for categories.
File
- rules/
rules.export.inc, line 12 - Provides export functionality and integrates with the features module.
Code
function rules_export_items($export, $module = NULL) {
foreach (array_keys($export) as $item_type) {
// Allow item specific adaption before exporting
foreach ($export[$item_type] as $item_name => $item) {
rules_item_type_invoke($item_type, 'export', array(
$item_name,
&$export[$item_type][$item_name],
&$export,
$module,
));
}
}
return $export;
}