You are here

function _media_flickr_photo_url in Media: Flickr 6

Same name and namespace in other branches
  1. 7.2 includes/media_flickr.utilities.inc \_media_flickr_photo_url()
  2. 7 includes/media_flickr.utilities.inc \_media_flickr_photo_url()

Based on the Photo ID of a Flickr image, this will return the URL to the image itself.

Parameters

$photo_code: The Flickr photo code. @param $width @param $height We use this to guess the actual size provided by Flickr. @param $cached If TRUE, then we'll cache the remote URL if the attempt to save the file locally fails.

1 call to _media_flickr_photo_url()
media_flickr_photo_url in ./media_flickr.module
Based on the Photo ID of a Flickr image, this will return the URL to the image itself.

File

./media_flickr.utilities.inc, line 20
Utility functions for Media: Flickr.

Code

function _media_flickr_photo_url($photo_code, $width = 0, $height = 0, $cached = TRUE) {
  if ($photo_code) {
    $size = media_flickr_guess_size($width, $height);
    return media_flickr_photo_url_from_size($photo_code, $size);
  }
}