function supersized_field_formatter_view in Supersized 8
Same name and namespace in other branches
- 7 supersized.field.inc \supersized_field_formatter_view()
Implements hook_field_formatter_view().
File
- ./
supersized.field.inc, line 570 - Implement an image field, based on the file module's file field.
Code
function supersized_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
switch ($display['type']) {
case 'supersized_image':
foreach ($items as $delta => $item) {
$element[$delta] = array(
'#theme' => 'image_formatter',
'#item' => $item,
'#image_style' => $display['settings']['image_style'],
);
}
break;
}
return $element;
}