function image_configuration_export in Configuration Management 7
Implements hook_configuration_export().
File
- includes/
configuration.image.inc, line 31
Code
function image_configuration_export($data, &$export, $module_name = '') {
$pipe = array();
$map = configuration_get_default_map('image');
foreach ($data as $style) {
$export['dependencies']['image'] = 'image';
// If another module provides this style, add it as a dependency
if (isset($map[$style]) && $map[$style] != $module_name) {
$module = $map[$style];
$export['dependencies'][$module] = $module;
}
// Otherwise, export the style
if (image_style_load($style)) {
$export['configuration']['image'][$style] = $style;
}
}
return $pipe;
}