image_field_formatter_info

Versions
mediamosa-21
image_field_formatter_info()

Implements hook_field_formatter_info().

Code

modules/image/image.field.inc, line 419

<?php
function image_field_formatter_info() {
  $formatters = array(
    'image' => array(
      'label' => t('Image'),
      'field types' => array('image'),
    ),
    'image_link_content' => array(
      'label' => t('Image linked to content'),
      'field types' => array('image'),
    ),
    'image_link_file' => array(
      'label' => t('Image linked to file'),
      'field types' => array('image'),
    ),
  );

  foreach (image_styles() as $style) {
    $formatters['image__' . $style['name']] = array(
      'label' => t('Image "@style"', array('@style' => $style['name'])),
      'field types' => array('image'),
    );
    $formatters['image_link_content__' . $style['name']] = array(
      'label' => t('Image "@style" linked to content', array('@style' => $style['name'])),
      'field types' => array('image'),
    );
    $formatters['image_link_file__' . $style['name']] = array(
      'label' => t('Image "@style" linked to file', array('@style' => $style['name'])),
      'field types' => array('image'),
    );
  }

  return $formatters;
}
?>