function flickr_photoset_page_url in Flickr 7
Same name and namespace in other branches
- 5 flickr.inc \flickr_photoset_page_url()
- 6 flickr.inc \flickr_photoset_page_url()
Returns the URL of a given photoset page.
Parameters
string $owner: Owner of the photoset.
string $id: ID of the photoset to which the url must lead.
Return value
array URL for the photoset page of photoset $id of owner $owner.
3 calls to flickr_photoset_page_url()
- theme_flickrfield_formatter_photoset_flickrcomsetlink in field/
flickrfield.module - Theme a Flickr photoset as a simple link to the photoset page on Flickr.com.
- theme_flickrfield_formatter_photoset_primaryphoto in field/
flickrfield.module - Theme a Flickr photo set as the primary photo of that set.
- theme_flickr_photoset in ./
flickr.module - Theme Flickr photoset.
File
- ./
flickr.inc, line 414 - The Flickr API functions.
Code
function flickr_photoset_page_url($owner, $id = NULL) {
$nsid = is_array($owner) ? $owner['nsid'] : $owner;
if ($person = flickr_people_getinfo($nsid)) {
return $person['photosurl']['_content'] . 'sets/' . $id;
}
else {
return "https://flickr.com/photos/{$nsid}/sets/{$id}";
}
}