You are here

mediafront_s3.module in MediaFront 6

Same filename and directory in other branches
  1. 6.2 plugins/mediafront_s3/mediafront_s3.module

File

plugins/mediafront_s3/mediafront_s3.module
View source
<?php

/**
 * Implementation of hook_playlist_node
 */
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;
}

Functions

Namesort descending Description
mediafront_s3_playlist_node Implementation of hook_playlist_node