You are here

function flickr_photoset_page_url in Flickr 6

Same name and namespace in other branches
  1. 5 flickr.inc \flickr_photoset_page_url()
  2. 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

5 calls to flickr_photoset_page_url()
flickrfield_process in field/flickrfield.module
theme_flickrfield_field_formatter in field/flickrfield.module
Basic flickrfield formatter.
theme_flickrfield_formatter_photoset_flickrcomsetlink in field/flickrfield.module
Theme a Flickr photo set as a simple link to the photo set 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

File

./flickr.inc, line 340

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 "https://flickr.com/photos/{$nsid}/sets/{$id}";
  }
}