function theme_video_filter_flash in Video Filter 5.2
Same name and namespace in other branches
- 6.3 video_filter.module \theme_video_filter_flash()
- 6.2 video_filter.module \theme_video_filter_flash()
- 7.3 video_filter.module \theme_video_filter_flash()
Function that outputs the <object> element.
1 theme call to theme_video_filter_flash()
- video_filter_flash in ./
video_filter.module - Wrapper that calls the theme function.
File
- ./
video_filter.module, line 216
Code
function theme_video_filter_flash($video, $params) {
$output = '';
$output .= '<object type="application/x-shockwave-flash" ';
if ($video['align']) {
$output .= 'style="float:' . $video['align'] . '" ';
}
$output .= 'width="' . $video['width'] . '" height="' . $video['height'] . '" data="' . $video['source'] . '">' . "\n";
$defaults = array(
'movie' => $video['source'],
'wmode' => 'transparent',
'allowFullScreen' => 'true',
);
$params = array_merge($defaults, is_array($params) && count($params) ? $params : array());
foreach ($params as $name => $value) {
$output .= ' <param name="' . $name . '" value="' . $value . '" />' . "\n";
}
$output .= '</object>' . "\n";
return $output;
}