You are here

function image_max_size_crop_image_effect_info in Image max size crop 7

Implements hook_image_effect_info().

File

./image_max_size_crop.module, line 11
Functions needed to create an image style.

Code

function image_max_size_crop_image_effect_info() {
  $effects = array(
    'image_max_size_crop' => array(
      'label' => t('Maximum size crop'),
      'help' => t('Cropping will remove portions of an image to make it the specified dimensions. This style only resizes when the image dimension(s) is larger than the spedified dimension(s).'),
      'effect callback' => 'image_max_size_crop_effect',
      'dimensions callback' => 'image_max_size_crop_dimensions',
      'form callback' => 'image_max_size_crop_form',
      'summary theme' => 'image_max_size_crop_summary',
    ),
  );
  return $effects;
}