data); } function getTarget($f) { return FALSE; } function interpolateUrl() { return 'http://vimeo.com/' . intval($this->parameters['v']); } function getOriginalThumbnailPath() { $video_properties = self::getVideoProperties($this->parameters['v']); return $video_properties[0]['thumbnail_large']; } function getLocalThumbnailPath() { $local_path = 'public://media-vimeo/' . intval($this->parameters['v']) . '.jpg'; if (!file_exists($local_path)) { $dirname = drupal_dirname($local_path); file_prepare_directory($dirname, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS); @copy($this->getOriginalThumbnailPath(), $local_path); } return $local_path; } }