Same name and namespace in other branches
- 7.x-2.x colorbox.module \colorbox_field_formatter_view() 1 comment
Implements hook_field_formatter_view().
File
-
./
colorbox.module, line 596
Code
function colorbox_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
foreach ($items as $delta => $item) {
$element[$delta] = array(
'#theme' => 'colorbox_image_formatter',
'#item' => $item,
'#entity_type' => $entity_type,
'#entity' => $entity,
'#node' => $entity,
// Left for legacy support.
'#field' => $field,
'#display_settings' => $display['settings'],
);
}
return $element;
}