function emvideo_wattv_emvideo_emcode in Asset 7
Implements hook_emvideo_emcode().
File
- modules/
emvideo/ modules/ emvideo_wattv/ emvideo_wattv.module, line 63 - Emvideo wattv module.
Code
function emvideo_wattv_emvideo_emcode($params) {
$output = FALSE;
// We handle here only new type of embed, old will fallback into flash object rendering.
if ($params['provider'] == 'wattv' && strpos($params['source'], 'http://www.wat.tv/swf2/') !== 0) {
$output = '<iframe src="' . $params['source'] . '" width="' . $params['width'] . '" height="' . $params['height'] . '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
}
return $output;
}