function video_filter_flash in Video Filter 5
Same name and namespace in other branches
- 5.2 video_filter.module \video_filter_flash()
- 6.3 video_filter.module \video_filter_flash()
- 6 video_filter.module \video_filter_flash()
- 6.2 video_filter.module \video_filter_flash()
- 7.3 video_filter.module \video_filter_flash()
8 calls to video_filter_flash()
File
- ./
video_filter.module, line 186
Code
function video_filter_flash($video, $params = array()) {
$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',
);
$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;
}