You are here

function flickr_photos_getinfo in Flickr 7

Get information about a photo.

Parameters

string $photo_id: ID of the photo to get info about.

Return value

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

4 calls to flickr_photos_getinfo()
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.
theme_flickrfield_field_formatter in field/flickrfield.module
Basic flickrfield formatter.
theme_flickr_photo in ./flickr.module
Theme Flickr photo.

File

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

Code

function flickr_photos_getinfo($photo_id) {
  $response = flickr_request('flickr.photos.getInfo', array(
    'photo_id' => $photo_id,
  ));
  if ($response) {
    return $response['photo'];
  }
  return FALSE;
}