function content_type_groups_features_export in Content type groups 7
Same name and namespace in other branches
- 7.2 content_type_groups.features.inc \content_type_groups_features_export()
Implementation of hook_features_export().
When one of these components is selected on the features page, this hook includes the item (plus any dependencies) in the export array.
Parameters
array $data: The machine name for this component.
array &$export: An array of components to be exported.
string $module_name: The name of the feature module that will be created.
Return value
array An array of functions for further processing (if desired).
File
- ./
content_type_groups.features.inc, line 38 - Export functionality for the content type groups module.
Code
function content_type_groups_features_export($data, &$export, $module_name) {
// These are the dependencies for this module to function properly
$export['dependencies']['content_type_groups'] = 'content_type_groups';
// This is a simple straight object export.
foreach ($data as $component) {
$export['features']['content_type_groups'][$component] = $component;
}
return array();
}