You are here

function flickr_photo_get_info in Flickr 5

Same name and namespace in other branches
  1. 6 flickr.api.inc \flickr_photo_get_info()

Parameters

$photo_id: id of the photo to get info about

Return value

response from the flickr method flickr.photos.getInfo (http://www.flickr.com/services/api/flickr.photos.getInfo.html)

2 calls to flickr_photo_get_info()
flickrfield_field_formatter in field/flickrfield.module
Implementation of hook_field_formatter().
flickr_filter_callback_photo in filter/flickr_filter.module
Filter callback for a photo.

File

./flickr.inc, line 269

Code

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