function theme_lightbox2_formatter_emimage in Lightbox2 6
Generate the HTML output to open embedded cck images in a lightbox.
Parameters
$element: The CCK field element.
Return value
The themed link to the embedded image.
1 string reference to 'theme_lightbox2_formatter_emimage'
- lightbox2_theme in ./
lightbox2.module - Implementation of hook_theme().
File
- ./
lightbox2.formatter.inc, line 353 - Lightbox2 formatter hooks and callbacks.
Code
function theme_lightbox2_formatter_emimage($element) {
$field = content_fields($element['#field_name'], $element['#type_name']);
$item = $element['#item'];
$formatter = $element['#formatter'];
$node = node_load($element['#node']->nid);
list($tmp, $lightbox_type) = explode('_', $formatter, 2);
$field['lightbox_type'] = $lightbox_type;
$formatter = "emimage";
return module_invoke('emfield', 'emfield_field_formatter', $field, $item, $formatter, $node, 'lightbox2');
}