You are here

function emvideo_flickr_sets_embedded_link in Media: Flickr 6

hook emvideo_PROVIDER_embedded_link($video_code) returns a link to view the video at the provider's site

Parameters

$video_code: the string containing the video to watch @return a string containing the URL to view the video at the original provider's site

File

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

Code

function emvideo_flickr_sets_embedded_link($video_code, $data = array()) {
  if (empty($data)) {
    $data = emvideo_flickr_sets_data(NULL, array(
      'value' => $video_code,
    ));
  }
  return 'https://www.flickr.com/photos/' . $data['owner'] . '/sets/' . $video_code;
}