function emvideo_flickr_sets_preview in Media: Flickr 6
hook emvideo_PROVIDER_video This actually displays the preview-sized video we want, commonly for the teaser
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 425 - This include processes flickr.com photosets for use by emfield/emvideo.module.
Code
function emvideo_flickr_sets_preview($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_preview'] ? $field['widget']['media_flickr_player_preview'] : variable_get('media_flickr_player', 'flash'));
$options['formatter'] = $options['formatter'] ? $options['formatter'] : 'preview';
$output = theme('emvideo_flickr_sets_' . $options['player'], $item, $width, $height, $autoplay, $options);
return $output;
}