function fancybox_field_formatter_view in fancyBox 7.2
Same name and namespace in other branches
- 7 fancybox.module \fancybox_field_formatter_view()
Implements hook_field_formatter_view().
File
- ./
fancybox.module, line 327 - Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…
Code
function fancybox_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
foreach ($items as $i => $item) {
$element[$i] = array(
'#theme' => 'fancybox_image_formatter',
'#item' => $item,
'#entity' => $entity,
'#entity_type' => $entity_type,
'#field' => $field,
'#display_settings' => $display['settings'],
);
}
return $element;
}