You are here

function image_update_5201 in Image 5.2

Same name and namespace in other branches
  1. 6 image.install \image_update_5201()
  2. 7 image.install \image_update_5201()

Updating image size settings to use scaling as the default operation.

File

./image.install, line 247

Code

function image_update_5201() {
  drupal_load('module', 'image');
  $sizes = image_get_sizes();
  foreach ($sizes as $key => $size) {
    $sizes[$key]['operation'] = 'scale';
  }
  variable_set('image_sizes', $sizes);
  return array();
}