function flickr_photo_get_sizes in Flickr 6
Same name and namespace in other branches
- 5 flickr.inc \flickr_photo_get_sizes()
Parameters
$photo_id: id of the photo to get the available sizes of
Return value
response from the flickr method flickr.photos.getSizes (http://www.flickr.com/services/api/flickr.photos.getSizes.html)
1 call to flickr_photo_get_sizes()
- flickr_img in ./
flickr.inc - This function will try to create a html image tag referencing the Flickr photo with the desired size if that size is available for this photo.
File
- ./
flickr.api.inc, line 32
Code
function flickr_photo_get_sizes($photo_id) {
$response = flickr_request('flickr.photos.getSizes', array(
'photo_id' => $photo_id,
));
if ($response) {
return $response['sizes']['size'];
}
return FALSE;
}