function hook_features_pipe_alter in Features 7
Same name and namespace in other branches
- 7.2 features.api.php \hook_features_pipe_alter()
Alter the pipe array for a given component.
Parameters
array &$pipe: By reference. The pipe array of further processors that should be called.
array $data: An array of machine names for the component in question to be exported.
array &$export: By reference. An array of all components to be exported with a given feature.
The component being exported is contained in $export['component']. The module being exported contained in $export['module_name'].
1 invocation of hook_features_pipe_alter()
- _features_populate in ./
features.export.inc - Iterate and descend into a feature definition to extract module dependencies and feature definition. Calls hook_features_export for modules that implement it.
File
- ./
features.api.php, line 273
Code
function hook_features_pipe_alter(&$pipe, $data, $export) {
if ($export['component'] == 'node' && in_array($data, 'my-node-type')) {
$pipe['dependencies'][] = 'mymodule';
}
}