function theme_imagefield_formatter_image_plain in ImageField 6.3
@file ImageField formatter hooks and callbacks.
2 theme calls to theme_imagefield_formatter_image_plain()
File
- ./
imagefield_formatter.inc, line 8 - ImageField formatter hooks and callbacks.
Code
function theme_imagefield_formatter_image_plain($element) {
// Inside a view $element may contain null data. In that case, just return.
if (empty($element['#item']['fid'])) {
return '';
}
$field = content_fields($element['#field_name']);
$item = $element['#item'];
$item['data']['alt'] = isset($item['data']['alt']) ? $item['data']['alt'] : '';
$item['data']['title'] = isset($item['data']['title']) ? $item['data']['title'] : NULL;
$class = 'imagefield imagefield-' . $field['field_name'];
return theme('imagefield_image', $item, $item['data']['alt'], $item['data']['title'], array(
'class' => $class,
));
}