You are here

function imagecache_proportions_field_formatter_info in Imagecache Proportions 7

Same name and namespace in other branches
  1. 6 imagecache_proportions.module \imagecache_proportions_field_formatter_info()

Implements hook_field_formatter_info().

File

./imagecache_proportions.module, line 14
Field formatter for image fields that allows the user to select between 3 different image styles depending on the proportions of the original image uploaded. One style would be squared for more or less squared images, another for wider images and the…

Code

function imagecache_proportions_field_formatter_info() {
  return array(
    'vertical_horizontal' => array(
      'label' => t('Imagecache proportions'),
      'field types' => array(
        'image',
      ),
      'settings' => array(
        'horizontal_preset' => '',
        'vertical_preset' => '',
        'style' => '',
        'squared_preset' => '',
        'looseness' => 0,
        'enable_link' => '',
        'modal_style' => '',
        'colorbox' => array(
          'colorbox_image_style' => '',
          'colorbox_gallery' => 'post',
          'colorbox_gallery_custom' => '',
          'colorbox_caption' => 'auto',
          'colorbox_caption_custom' => '',
        ),
        'shadowbox' => array(
          'image_link' => '',
          'gallery' => '',
          'compact' => '',
          'title' => '',
        ),
      ),
      'description' => t('Display the image in horizontal if it is more wide than high or in vertical if it is more high than wide.'),
    ),
  );
}