You are here

function flickr_photos_getsizes in Flickr 7

Returns the available sizes for a photo.

Parameters

string $photo_id: ID of the photo to get the available sizes of.

Return value

array Response from the flickr method flickr.photos.getSizes.. (https://www.flickr.com/services/api/flickr.photos.getSizes.html)

3 calls to flickr_photos_getsizes()
flickr_album in ./flickr.inc
Render multiple photos as an album.
flickr_filter_callback_photo in filter/flickr_filter.module
Filter callback for a photo.
flickr_img in ./flickr.inc
This function will try to create an html image tag referencing the Flickr photo with the desired size if that size is available for this photo.

File

./flickr.api.inc, line 38
Flickr API functions.

Code

function flickr_photos_getsizes($photo_id) {
  $response = flickr_request('flickr.photos.getSizes', array(
    'photo_id' => $photo_id,
  ));
  if ($response) {
    return $response['sizes']['size'];
  }
  return FALSE;
}