function video_embed_dailymotion_handle_thumbnail in Video Embed Dailymotion 7
Retreive the thumbnail for the dailymotion video.
Parameters
string $url: the url of the video as entered by the user
Return value
array an array with the keys: 'id' => an id for the video which is unique to your provider 'url' => the url to retrieve the thumbnail from
1 string reference to 'video_embed_dailymotion_handle_thumbnail'
File
- ./
video_embed_dailymotion.module, line 123 - Add a handler for dailymotion videos to Video Embed Field with this module you can add videos from dailymotion.com
Code
function video_embed_dailymotion_handle_thumbnail($url) {
$id = _video_embed_dailymotion_get_video_id($url);
$thumbnail = 'http://www.dailymotion.com/thumbnail/video/' . $id;
return array(
'id' => $id,
'url' => $thumbnail,
);
}