You are here

function emvideo_archive_thumbnail in Embedded Media Field 6

hook emvideo_PROVIDER_thumbnail Returns the external url for a thumbnail of a specific video.

Parameters

$field: The field of the requesting node. @param $item The actual content of the field from the requesting node. @return A URL pointing to the thumbnail.

File

contrib/emvideo/providers/archive.inc, line 345
This is an archive.org provider include file for Embedded Media Video.

Code

function emvideo_archive_thumbnail($field, $item, $formatter, $node, $width, $height) {

  // In this demonstration, we previously retrieved a thumbnail using oEmbed
  // during the data hook.
  return $item['data']['thumbnail'];
}