function _image_configuration_style_sanitize in Configuration Management 7
Remove unnecessary keys for export.
1 call to _image_configuration_style_sanitize()
- image_configuration_export_render in includes/
configuration.image.inc - Implements hook_configuration_export_render().
File
- includes/
configuration.image.inc, line 94
Code
function _image_configuration_style_sanitize(&$style, $child = FALSE) {
$omit = $child ? array(
'isid',
'ieid',
'storage',
) : array(
'isid',
'ieid',
'storage',
'module',
);
if (is_array($style)) {
foreach ($style as $k => $v) {
if (in_array($k, $omit, TRUE)) {
unset($style[$k]);
}
elseif (is_array($v)) {
_image_configuration_style_sanitize($style[$k], TRUE);
}
}
}
}