image_field_formatter_info()Implements hook_field_formatter_info().
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;
}
?>