function your_module_handle_ustream in Video Embed Field 7.2
Generate the embed code for a video
Parameters
$url - the video url as entered by the user:
$settings - the settings for this provider as defined in the form function,: defaulting to your provider's defaults
Return value
the embed code as a renderable array
1 string reference to 'your_module_handle_ustream'
- hook_video_embed_handler_info in ./
video_embed_field.api.php - @function hook_video_embed_handler_info Can be used to add more handlers for video_embed_field
File
- ./
video_embed_field.api.php, line 81
Code
function your_module_handle_ustream($url, $settings) {
return array(
//this should be the full embed code for your provider, including each of the settings
'#markup' => '<iframe src="ustream"></iframe>',
);
}