You are here

function flickr_photosets_getphotos in Flickr 7

Get the list of photos in a set.

Parameters

string $photoset_id: The Flickr photoset ID.

Return value

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

2 calls to flickr_photosets_getphotos()
flickr_album in ./flickr.inc
Render multiple photos as an album.
theme_flickr_photoset in ./flickr.module
Theme Flickr photoset.

File

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

Code

function flickr_photosets_getphotos($photoset_id, $other_args = array(), $page = 1) {
  $args = array(
    'photoset_id' => $photoset_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.photosets.getPhotos', array_merge($args, $other_args));
  if ($response) {
    return $response;
  }
  return FALSE;
}