function theme_imceimage_formatter in Imce CCK Image 6
Same name and namespace in other branches
- 6.2 imceimage.module \theme_imceimage_formatter()
1 string reference to 'theme_imceimage_formatter'
- imceimage_theme in ./
imceimage.module - hook_theme - that works together with hook_formatter and hook_elements to provide the default theme and also a theme to display the image as a link.
File
- ./
imceimage.module, line 419
Code
function theme_imceimage_formatter($element) {
if (!isset($element['#item']['nid'])) {
$element['#item']['nid'] = $element['#node']->nid;
}
if (isset($element['#item']['nid']) && ($node = node_load($element['#item']['nid']))) {
$result = imceimage_field_formatter($element['#field_name'], $element['#item'], $element['#formatter'], $node);
return $result;
}
}