function hook_features_pipe_COMPONENT_alter in Features 7
Same name and namespace in other branches
- 6 features.api.php \hook_features_pipe_component_alter()
- 7.2 features.api.php \hook_features_pipe_COMPONENT_alter()
Alter the pipe array for a given component. This hook should be implemented with the name of the component type in place of `component` in the function name, e.g. `features_pipe_views_alter()` will alter the pipe for the Views 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.
1 function implements hook_features_pipe_COMPONENT_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- views_features_pipe_views_view_alter in includes/
features.ctools.inc - Implements hook_features_pipe_COMPONENT_alter() for views_view.
File
- ./
features.api.php, line 253
Code
function hook_features_pipe_COMPONENT_alter(&$pipe, $data, $export) {
if (in_array($data, 'my-node-type')) {
$pipe['dependencies'][] = 'mymodule';
}
}