You are here

function emthumb_thumbnail_path in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emthumb/emthumb.module \emthumb_thumbnail_path()
  2. 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.

4 calls to emthumb_thumbnail_path()
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.
1 string reference to 'emthumb_thumbnail_path'
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 598
Allows for custom thumbnail overrides to Embedded Media Field.

Code

function emthumb_thumbnail_path($item) {
  if (is_array($item['data']['emthumb']) && $item['data']['emthumb']['filepath']) {
    return file_create_path($item['data']['emthumb']['filepath']);
  }
}