You are here

function emimage_flickr_embedded_link in Media: Flickr 6

hook emimage_PROVIDER_embedded_link($code) returns a link to view the content at the provider's site

Parameters

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

1 call to emimage_flickr_embedded_link()
emimage_flickr_import in providers/emimage/flickr.inc
This allows flickr photosets to be imported into nodes

File

providers/emimage/flickr.inc, line 202
This include processes flickr.com image files for use by emfield.module.

Code

function emimage_flickr_embedded_link($code, $data = array()) {
  if ($data['owner']) {
    $owner = $data['owner'];
  }
  else {
    $xml = emimage_flickr_request('flickr.photos.getInfo', array(
      'photo_id' => $code,
    ));
    $owner = $xml['photo']['owner']['nsid'];
  }
  return 'https://www.flickr.com/photos/' . $owner . '/' . $code;
}