function image_configuration_revert in Configuration Management 7
Implements hook_configuration_revert().
File
- includes/
configuration.image.inc, line 74
Code
function image_configuration_revert($identifiers, $module_name = 'configuration') {
if ($default_styles = configuration_get_default('image', $module_name)) {
foreach ($default_styles as $identifier => $default_style) {
if (in_array($identifier, $identifiers) || !empty($identifiers) && $identifiers[0] == '#import_all') {
$style = image_style_load($identifier);
image_default_style_revert($style);
$cache = cache_get("image:{$identifier}", 'cache_configuration');
$cache->data['image'][$identifier]['activestore'] = $cache->data['image'][$identifier]['datastore'];
cache_set('image:' . $identifier, $cache->data['image'][$identifier], 'cache_configuration');
configuration_set_status('image', $identifier, CONFIGURATION_IN_SYNC);
}
}
configuration_check_configurations(TRUE);
}
}