function _media_flickr_photo_url in Media: Flickr 7.2
Same name and namespace in other branches
- 6 media_flickr.utilities.inc \_media_flickr_photo_url()
- 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_id: 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_image_url in ./
media_flickr.module - Based on the Photo ID of a Flickr image, this will return the URL to the image itself.
File
- includes/
media_flickr.utilities.inc, line 21 - Utility functions for Media: Flickr.
Code
function _media_flickr_photo_url($photo_id, $width = 0, $height = 0, $cached = TRUE) {
if ($photo_id) {
$size = _media_flickr_guess_size($width, $height);
return _media_flickr_photo_url_from_size($photo_id, $size);
}
}