You are here

function image_update_5201 in Image 7

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

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

File

./image.install, line 290

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();
}