You are here

function video_cck_google_thumbnail in Embedded Media Field 5

File

contrib/video_cck/providers/google.inc, line 160

Code

function video_cck_google_thumbnail($field, $item, $formatter, $node, $width, $height) {
  if ($item['data']['video_cck_google_data_version'] >= 1) {
    $data = $item['data'];
  }
  else {
    $data = video_cck_google_data($field, $item);
  }
  return $data['thumbnail']['filepath'];
  return NULL;
}