You are here

function theme_video_filter_flash in Video Filter 6.3

Same name and namespace in other branches
  1. 5.2 video_filter.module \theme_video_filter_flash()
  2. 6.2 video_filter.module \theme_video_filter_flash()
  3. 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 for flash output.

File

./video_filter.module, line 556

Code

function theme_video_filter_flash($video, $params = array()) {
  $output = '';
  $classes = video_filter_get_classes($video);
  $output .= '<object class="' . implode(' ', $classes) . '" type="application/x-shockwave-flash" ';
  $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;
}