You are here

function _get_vimeo_thumbnail in Shadowbox 7.4

Same name and namespace in other branches
  1. 8 file_shadowbox/file_shadowbox.module \_get_vimeo_thumbnail()
1 call to _get_vimeo_thumbnail()
file_shadowbox_field_formatter_view in file_shadowbox/file_shadowbox.module
Implements hook_field_formatter_view().

File

file_shadowbox/file_shadowbox.module, line 394
File Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue for file field.

Code

function _get_vimeo_thumbnail($id) {
  $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/{$id}.php"));
  return $hash[0]['thumbnail_medium'];
}