You are here

function textimage_field_formatter in Textimage 5.2

Implementation of hook_field_formatter().

File

./textimage.module, line 906

Code

function textimage_field_formatter($field, $item, $formatter, $node) {
  $alt = $title = $item['value'];
  if ($field['type'] == 'email') {
    $item['value'] = $item['email'];
    $alt = $title = '';
  }
  return theme('textimage_image', drupal_substr($formatter, 10), $item['value'], array(), 'png', $alt, $title);
}