You are here

function video_filter_flash in Video Filter 6

Same name and namespace in other branches
  1. 5.2 video_filter.module \video_filter_flash()
  2. 5 video_filter.module \video_filter_flash()
  3. 6.3 video_filter.module \video_filter_flash()
  4. 6.2 video_filter.module \video_filter_flash()
  5. 7.3 video_filter.module \video_filter_flash()
8 calls to video_filter_flash()
video_filter_dailymotion in ./video_filter.codecs.inc
video_filter_eyespot in ./video_filter.codecs.inc
video_filter_flickr_slideshows in ./video_filter.codecs.inc
video_filter_google in ./video_filter.codecs.inc
video_filter_jumpcut in ./video_filter.codecs.inc

... See full list

File

./video_filter.module, line 187

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;
}