You are here

function imagefield_field_formatter_info in ImageField 5.2

Same name and namespace in other branches
  1. 5 imagefield.module \imagefield_field_formatter_info()
  2. 6.3 imagefield.module \imagefield_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./imagefield.module, line 921
Defines an image field type. imagefield uses content.module to store the fid, and the drupal files table to store the actual file data.

Code

function imagefield_field_formatter_info() {
  $formatters = array(
    'default' => array(
      'label' => 'Default',
      'field types' => array(
        'image',
      ),
    ),
    'imagefield_nodelink' => array(
      'label' => t('link to node'),
      'field types' => array(
        'image',
      ),
    ),
    'imagefield_imagelink' => array(
      'label' => t('link to image'),
      'field types' => array(
        'image',
      ),
    ),
    'imagefield_path' => array(
      'label' => t('path to image'),
      'field types' => array(
        'image',
      ),
    ),
    'imagefield_url' => array(
      'label' => t('url to image'),
      'field types' => array(
        'image',
      ),
    ),
  );
  return $formatters;
}