You are here

function flickr_galleries_getphotos in Flickr 7

Returns a list of photos for a given gallery.

Parameters

string $id: ID of the gallery.

Return value

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

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

File

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

Code

function flickr_galleries_getphotos($id, $page = 1, $other_args = array()) {
  $args = array(
    'gallery_id' => $id,
    'page' => $page,
  );

  // Set per_page to flickr module default if not specified in $other_args.
  if (!isset($other_args['per_page'])) {
    $args['per_page'] = variable_get('flickr_photos_per_page', 6);
  }
  $response = flickr_request('flickr.galleries.getPhotos', array_merge($args, $other_args));
  if ($response) {
    return $response;
  }
  return FALSE;
}