function theme_asset_youtube_video in Asset 6
Same name and namespace in other branches
- 5 asset_youtube/asset_youtube.module \theme_asset_youtube_video()
1 theme call to theme_asset_youtube_video()
- asset_youtube_asset_formatter in asset_youtube/
asset_youtube.module
File
- asset_youtube/
inc/ asset_youtube.themes.inc, line 10
Code
function theme_asset_youtube_video($asset, $attr = array()) {
$id = str_replace('.youtube', '', $asset->filename);
return '<object width="' . $attr['width'] . '" height="' . $attr['height'] . '">' . '<param name="movie" value="http://www.youtube.com/v/' . $id . '"></param>' . '<param name="wmode" value="transparent"></param>' . '<embed src="http://www.youtube.com/v/' . $id . '" type="application/x-shockwave-flash" ' . 'wmode="transparent" width="' . $attr['width'] . '" height="' . $attr['height'] . '">' . '</embed></object>';
}