function image_ncck_flickr_embedded_link in Embedded Media Field 5
hook image_ncck_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 image_ncck_flickr_embedded_link()
- image_ncck_flickr_import in contrib/
image_ncck/ providers/ flickr.inc - This allows flickr photosets to be imported into nodes
File
- contrib/
image_ncck/ providers/ flickr.inc, line 174
Code
function image_ncck_flickr_embedded_link($code, $data = array()) {
if ($data['owner']) {
$owner = $data['owner'];
}
else {
$xml = image_ncck_flickr_request('flickr.photos.getInfo', array(
'photo_id' => $code,
));
$owner = $xml['photo']['owner']['nsid'];
}
return 'http://www.flickr.com/photos/' . $owner . '/' . $code;
}