You are here

function taxonomy_image_field_formatter_info in Taxonomy Image 7

Implements hook_field_formatter_info().

File

./taxonomy_image.module, line 12
Implements a field formatter that can display image on referenced taxonomy terms.

Code

function taxonomy_image_field_formatter_info() {
  return array(
    'taxonomy_image_term_reference_image' => array(
      'label' => t('Image'),
      'field types' => array(
        'taxonomy_term_reference',
      ),
      'settings' => array(
        'field_name' => 'taxonomy_image',
        'image_style' => NULL,
        'linked' => TRUE,
        'text_alt' => TRUE,
      ),
    ),
  );
}