function theme_image_ncck_image_full in Embedded Media Field 5
1 theme call to theme_image_ncck_image_full()
- theme_image_ncck_default in contrib/
image_ncck/ image_ncck.module
File
- contrib/
image_ncck/ image_ncck.module, line 351
Code
function theme_image_ncck_image_full($field, $item, $formatter, $node) {
if ($item['value'] && $item['provider']) {
$code = $item['value'];
$width = $field['widget']['full_width'] === '' ? IMAGE_NCCK_DEFAULT_FULL_WIDTH : $field['widget']['full_width'];
$height = $field['widget']['full_height'] === '' ? IMAGE_NCCK_DEFAULT_FULL_HEIGHT : $field['widget']['full_height'];
$link = $field['widget']['full_link'] === '' ? IMAGE_NCCK_DEFAULT_FULL_LINK : $field['widget']['full_link'];
if ($link == IMAGE_NCCK_LINK_CONTENT) {
$link = 'node/' . $node->nid;
}
else {
if ($link == IMAGE_NCCK_LINK_PROVIDER) {
$link = module_invoke('emfield', 'include_invoke', 'image_ncck', $item['provider'], 'embedded_link', $code, $item['data']);
}
else {
$link = NULL;
}
}
$title = module_invoke('emfield', 'include_invoke', 'image_ncck', $item['provider'], 'image_title', $code, $item['data']);
$output = theme('image_ncck_image', $field, $item, $formatter, $node, $code, $width, $height, $title, $link);
}
return $output;
}