You are here

function image_update_3 in Image 6

Same name and namespace in other branches
  1. 5.2 image.install \image_update_3()
  2. 5 image.install \image_update_3()
  3. 7 image.install \image_update_3()

Add the link field to each size.

File

./image.install, line 136

Code

function image_update_3() {
  $sizes = variable_get('image_sizes', FALSE);
  if ($sizes) {
    $new_sizes = array();
    foreach ($sizes as $key => $size) {
      $size['link'] = 1;
      $new_sizes[$key] = $size;
    }
    variable_set('image_sizes', $new_sizes);
  }
  return array();
}