function flickr_photo_page_url in Flickr 6
Same name and namespace in other branches
- 5 flickr.inc \flickr_photo_page_url()
- 7 flickr.inc \flickr_photo_page_url()
Parameters
$owner: owner of the photo
$id: id of the photo to reference in the url
Return value
url for the flickr photo page showing photo with $id of $owner
4 calls to flickr_photo_page_url()
- flickrfield_process in field/
flickrfield.module - theme_flickrfield_field_formatter in field/
flickrfield.module - Basic flickrfield formatter.
- theme_flickr_photo in ./
flickr.module - theme_flickr_photo_box in ./
flickr.module
File
- ./
flickr.inc, line 263
Code
function flickr_photo_page_url($owner, $id = NULL) {
$nsid = is_array($owner) ? $owner['nsid'] : $owner;
if ($person = flickr_people_get_info($nsid)) {
return $person['photosurl']['_content'] . $id;
}
else {
return "https://flickr.com/photos/{$nsid}/{$id}";
}
}