You are here

function emimage_flickr_embedded_link in Embedded Media Field 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 contrib/emimage/providers/flickr.inc
This allows flickr photosets to be imported into nodes

File

contrib/emimage/providers/flickr.inc, line 204
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 'http://www.flickr.com/photos/' . $owner . '/' . $code;
}