1 image.field.inc image_field_formatter_info()

Implements hook_field_formatter_info().

File

core/modules/image/image.field.inc, line 625
Implement an image field, based on the file module's file field.

Code

function image_field_formatter_info() {
  $image_formatter = array(
    'label' => t('Image'),
    'field types' => array('image'),
    'settings' => array(
      'image_style' => '',
      'image_link' => '',
      'image_float' => '',
      'image_load' => 'auto',
    ),
    'description' => t('Format the file as an image. The image can be displayed using an image style and can optionally be linked to the image file itself or its parent content.'),
    'file formatter' => array(
      'mime types' => array('image/*'),
    ),
  );
  $formatters['image'] = $image_formatter;

  return $formatters;
}