You are here

function dependencies_features_export in Features 6

Same name and namespace in other branches
  1. 7.2 includes/features.features.inc \dependencies_features_export()
  2. 7 includes/features.features.inc \dependencies_features_export()

Implementation of 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']);
}