You are here

function retina_images_image_effect_info_alter in Retina Images 7

Same name and namespace in other branches
  1. 8 retina_images.module \retina_images_image_effect_info_alter()

Implements hook_image_effect_info_alter

File

./retina_images.module, line 11
This module provides an image effect to assist in outputing high resolution images.

Code

function retina_images_image_effect_info_alter(&$effects) {

  // Scale effect
  $effects['image_scale']['form callback'] = 'retina_images_image_scale_form';
  $effects['image_scale']['effect callback'] = 'retina_images_image_scale_effect';
  $effects['image_scale']['summary theme'] = 'retina_images_image_scale_summary';

  // Scale and crop effect
  $effects['image_scale_and_crop']['form callback'] = 'retina_images_image_resize_form';
  $effects['image_scale_and_crop']['effect callback'] = 'retina_images_image_scale_and_crop_effect';
  $effects['image_scale_and_crop']['summary theme'] = 'retina_images_image_resize_summary';

  // Resize effect
  $effects['image_resize']['form callback'] = 'retina_images_image_resize_form';
  $effects['image_resize']['effect callback'] = 'retina_images_image_resize_effect';
  $effects['image_resize']['summary theme'] = 'retina_images_image_resize_summary';

  // Crop effect
  $effects['image_crop']['form callback'] = 'retina_images_image_crop_form';
  $effects['image_crop']['effect callback'] = 'retina_images_image_crop_effect';
  $effects['image_crop']['summary theme'] = 'retina_images_image_crop_summary';
}