function emvideo_vimeo_emvideo_emcode in Asset 7
Implements hook_emvideo_emcode().
File
- modules/
emvideo/ modules/ emvideo_vimeo/ emvideo_vimeo.module, line 41 - Emvideo vimeo module.
Code
function emvideo_vimeo_emvideo_emcode($params) {
$output = FALSE;
if ($params['provider'] == 'vimeo') {
// Use Vimeo's new iframe embedding method.
$output = '<iframe src="' . $params['source'] . '" width="' . $params['width'] . '" height="' . $params['height'] . '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
}
return $output;
}