function defaultcontent_features_pipe_content_alter in Default Content 7
Same name and namespace in other branches
- 7.2 defaultcontent.module \defaultcontent_features_pipe_content_alter()
Implements hook_features_pipe_COMPONENT_alter() for the 'content' component.
File
- ./
defaultcontent.module, line 388 - Module file for the Default content module which allow export and import of default content in a Drupal site.
Code
function defaultcontent_features_pipe_content_alter(&$pipe, $data, $export) {
// Ensure that this module is listed as a dependency.
if (empty($pipe['dependencies']) || !in_array($pipe['dependencies'], 'defaultcontent')) {
$pipe['dependencies'][] = 'defaultcontent';
}
}