function dependencies_features_export in Features 7
Same name and namespace in other branches
- 6 includes/features.features.inc \dependencies_features_export()
- 7.2 includes/features.features.inc \dependencies_features_export()
Implements hook_features_export().
File
- includes/
features.features.inc, line 34
Code
function dependencies_features_export($data, &$export, $module_name = '') {
// Don't allow a module to depend upon itself.
if (!empty($data[$module_name])) {
unset($data[$module_name]);
}
// Clean up existing dependencies and merge.
$export['dependencies'] = _features_export_minimize_dependencies($export['dependencies'], $module_name);
$export['dependencies'] = array_merge($data, $export['dependencies']);
$export['dependencies'] = array_unique($export['dependencies']);
}