You are here

function flickr_galleries_getinfo in Flickr 7

Returns info about a given gallery.

Parameters

string $id: NSID of the gallery whose photos you want.

Return value

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

1 call to flickr_galleries_getinfo()
flickr_album in ./flickr.inc
Render multiple photos as an album.

File

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

Code

function flickr_galleries_getinfo($id, $other_args = array()) {
  $args = array(
    'gallery_id' => $id,
  );

  // $return_errors = TRUE avoids error messages when we abuse this function to
  // determine betweeen a gallery and set ID.
  $response = flickr_request('flickr.galleries.getInfo', array_merge($args, $other_args), $cacheable = FALSE, $return_errors = TRUE);
  if ($response) {
    return $response;
  }
}