function _imagecache_features_preset_sanitize in Features 6
Remove unnecessary keys for export.
1 call to _imagecache_features_preset_sanitize()
- imagecache_features_export_render in includes/
features.imagecache.inc - Implementation of hook_features_export_render().
File
- includes/
features.imagecache.inc, line 79
Code
function _imagecache_features_preset_sanitize(&$preset) {
$omit = array(
'presetid',
'storage',
'actionid',
);
if (is_array($preset)) {
foreach ($preset as $k => $v) {
if (in_array($k, $omit, TRUE)) {
unset($preset[$k]);
}
else {
if (is_array($v)) {
_imagecache_features_preset_sanitize($preset[$k]);
}
}
}
}
}