function flickr_photo_page_url in Flickr 5
Same name and namespace in other branches
- 6 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
3 calls to flickr_photo_page_url()
- flickrfield_field_formatter in field/flickrfield.module 
- Implementation of hook_field_formatter().
- theme_flickr_photo in ./flickr.module 
- theme_flickr_photo_box in ./flickr.module 
File
- ./flickr.inc, line 232 
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 "http://flickr.com/photos/{$nsid}/{$id}";
  }
}