function configuration_export_prepare in Configuration Management 7
Prepare a feature export array into a finalized info array.
File
- ./
configuration.export.inc, line 125
Code
function configuration_export_prepare($export, $module_name, $reset = FALSE) {
$existing = configuration_get_modules($module_name, $reset);
// Prepare info string -- if module exists, merge into its existing info file
$defaults = $existing ? $existing->info : array(
'core' => '7.x',
'package' => 'Features',
);
$export = array_merge($defaults, $export);
// Cleanup info array
foreach ($export['configuration'] as $component => $data) {
$export['configuration'][$component] = array_keys($data);
}
if (isset($export['dependencies'])) {
$export['dependencies'] = array_values($export['dependencies']);
}
if (isset($export['conflicts'])) {
unset($export['conflicts']);
}
ksort($export);
return $export;
}