You are here

function emvideo_flickr_sets_video in Media: Flickr 6

hook emvideo_PROVIDER_video This actually displays the full/normal-sized video we want, usually on the default page view

Parameters

$embed: the video code for the video to embed @param $width the width to display the video @param $height the height to display the video @param $field the field info from the requesting node @param $item the actual content from the field @return the html of the embedded video

File

providers/emvideo/flickr_sets.inc, line 400
This include processes flickr.com photosets for use by emfield/emvideo.module.

Code

function emvideo_flickr_sets_video($embed, $width, $height, $field, $item, $node, $autoplay, $options = array()) {
  $options['node'] = $options['node'] ? $options['node'] : $node;
  $options['field'] = $options['field'] ? $options['field'] : $field;
  $options['player'] = $options['player'] ? $options['player'] : ($field['widget']['media_flickr_player_video'] ? $field['widget']['media_flickr_player_video'] : variable_get('media_flickr_player', 'flash'));
  $options['formatter'] = $options['formatter'] ? $options['formatter'] : 'video';
  $output = theme('emvideo_flickr_sets_' . $options['player'], $item, $width, $height, $autoplay, $options);
  return $output;
}