You are here

function mediafront_s3_playlist_node in MediaFront 6

Same name and namespace in other branches
  1. 6.2 plugins/mediafront_s3/mediafront_s3.module \mediafront_s3_playlist_node()

Implementation of hook_playlist_node

File

plugins/mediafront_s3/mediafront_s3.module, line 5

Code

function mediafront_s3_playlist_node($node, $args) {
  $additions = array();
  $video = flashvideo_get_video_object($node);
  if ($video["file"] != "") {
    $additions["mediafiles"]["media"]["media"]["path"] = $video["file"];
  }
  $image = flashvideo_get_thumbnail($node, array(), TRUE);
  if ($image != "") {
    $additions["mediafiles"]["images"]["image"]["path"] = $image;
  }
  return $additions;
}