function video_embed_field_video_embed_handler_info in Video Embed Field 7
Same name and namespace in other branches
- 7.2 video_embed_field.handlers.inc \video_embed_field_video_embed_handler_info()
Implementation of hook_video_embed_handler_info
File
- ./
video_embed_field.module, line 346
Code
function video_embed_field_video_embed_handler_info() {
$ytdefaults = array(
'height' => 349,
'width' => 560,
'teaser_height' => 349,
'teaser_width' => 560,
'autoplay' => 0,
'hd' => 1,
'rel' => 0,
'autohide' => 2,
'showinfo' => 1,
'theme' => 'dark',
);
return array(
'youtube' => array(
'domain' => 'youtube.com',
'function' => 'video_embed_field_handle_youtube',
'defaults' => $ytdefaults,
'form' => 'video_embed_field_handler_youtube_form',
'title' => 'Youtube',
),
//include short form of youtube for sanity of users
'youtu.be' => array(
'domain' => 'youtu.be',
'defaults' => $ytdefaults,
'function' => 'video_embed_field_handle_youtube',
'title' => 'Youtube',
),
'vimeo' => array(
'domain' => 'vimeo.com',
'function' => 'video_embed_field_handle_vimeo',
'defaults' => array(
'height' => 315,
'width' => 560,
'teaser_height' => 315,
'teaser_width' => 560,
'color' => '00adef',
'autoplay' => 0,
),
'form' => 'video_embed_field_handler_vimeo_form',
'title' => 'Vimeo',
),
);
}