function flickr_photoset_page_url in Flickr 5
Same name and namespace in other branches
- 6 flickr.inc \flickr_photoset_page_url()
- 7 flickr.inc \flickr_photoset_page_url()
Parameters
$owner: owner of the photoset
$id: id of the photoset to which the url must lead
Return value
url for the photoset page of photoset $id of owner $owner
1 call to flickr_photoset_page_url()
File
- ./
flickr.inc, line 251
Code
function flickr_photoset_page_url($owner, $id = NULL) {
$nsid = is_array($owner) ? $owner['nsid'] : $owner;
if ($person = flickr_people_get_info($nsid)) {
return $person['photosurl']['_content'] . 'sets/' . $id;
}
else {
return "http://flickr.com/photos/{$nsid}/sets/{$id}";
}
}