You are here

function imagecache_proportions_field_formatter_info in Imagecache Proportions 6

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

Implements hook_field_formatter_info().

File

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

Code

function imagecache_proportions_field_formatter_info() {
  $formatters['vertical_horizontal'] = array(
    'label' => t('Imagecache proportions'),
    'description' => t('Display the image in horizontal if it is more wide than high or in vertical if it is more high than wide.'),
    'field types' => array(
      'image',
      'filefield',
    ),
  );
  return $formatters;
}