You are here

function theme_video_cck_myspace_flash in Embedded Media Field 5

2 theme calls to theme_video_cck_myspace_flash()
video_cck_myspace_preview in contrib/video_cck/providers/myspace.inc
video_cck_myspace_video in contrib/video_cck/providers/myspace.inc

File

contrib/video_cck/providers/myspace.inc, line 76

Code

function theme_video_cck_myspace_flash($embed, $width, $height) {
  static $count = 0;
  if ($embed) {
    $embed = check_plain($embed);
    $width = (int) $width;
    $height = (int) $height;
    $output .= '<object height="' . $height . 'px" width="' . $width . 'px" >
      <param name="allowFullScreen" value="true"/>
      <param name="wmode" value="transparent"/>
      <param name="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $embed . ',t=1,mt=video" />
      <embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=' . $embed . ',t=1,mt=video" width="' . $width . '" height="' . $height . '" allowFullScreen="true" type="application/x-shockwave-flash" wmode="transparent"></embed></object>';
  }
  $count++;
  return $output;
}