function hook_features_export_alter in Features 6
Same name and namespace in other branches
- 7.2 features.api.php \hook_features_export_alter()
- 7 features.api.php \hook_features_export_alter()
Alter the final export array just prior to the rendering of defaults. Allows modules a final say in altering what component objects are exported.
Parameters
array &$export: By reference. An array of all components to be exported with a given feature.
array $module_name: The name of the feature module to be generated.
1 invocation of hook_features_export_alter()
File
- ./
features.api.php, line 222
Code
function hook_features_export_alter(&$export, $module_name) {
// Example: do not allow the page content type to be exported, ever.
if (!empty($export['features']['node']['page'])) {
unset($export['features']['node']['page']);
}
}