function hook_features_export_alter in Features 7
Same name and namespace in other branches
- 6 features.api.php \hook_features_export_alter()
- 7.2 features.api.php \hook_features_export_alter()
Alter the final array of Component names to be exported, just prior to the rendering of defaults. Allows modules a final say in whether or not certain Components are exported (the Components' actual data, however, cannot be altered by this hook).
Parameters
array &$export: By reference. An array of all component names 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 232
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']);
}
}