function emthumb_thumbnail_path in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emthumb/emthumb.module \emthumb_thumbnail_path()
- 6.2 contrib/emthumb/emthumb.module \emthumb_thumbnail_path()
Return the custom thumbnail URL for an item.
Parameters
$item: The field item. @return The path to the custom thumbnail file.
5 calls to emthumb_thumbnail_path()
- theme_emimage_image in contrib/
emimage/ emimage.theme.inc - Helper theme for various emimage themes.
- theme_emthumb_imagecache_formatter_path in contrib/
emthumb/ emthumb.theme.inc - Returns the path to the imagecache image.
- theme_emthumb_imagecache_formatter_url in contrib/
emthumb/ emthumb.theme.inc - Returns the URL to the imagecache image.
- theme_emvideo_video_thumbnail in contrib/
emvideo/ emvideo.theme.inc - This will return a provided thumbnail image for a video.
- _emthumb_imagecache_formatter_default in contrib/
emthumb/ emthumb.theme.inc - Returns the path to the imagecache image, or the original item if it's external.
2 string references to 'emthumb_thumbnail_path'
- theme_emimage_image in contrib/
emimage/ emimage.theme.inc - Helper theme for various emimage themes.
- theme_emvideo_video_thumbnail in contrib/
emvideo/ emvideo.theme.inc - This will return a provided thumbnail image for a video.
File
- contrib/
emthumb/ emthumb.module, line 533 - Allows for custom thumbnail overrides to Embedded Media Field.
Code
function emthumb_thumbnail_path($item) {
if ($item['data']['emthumb']['filepath']) {
return file_create_path($item['data']['emthumb']['filepath']);
}
}