You are here

function flickr_photoset_get_list in Flickr 6

Same name and namespace in other branches
  1. 5 flickr.inc \flickr_photoset_get_list()

Parameters

$nsid: nsid of the user whose photoset list you want

Return value

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

2 calls to flickr_photoset_get_list()
flickr_sets_photosets in sets/flickr_sets.module
_flickr_block_photosets in block/flickr_block.module

File

./flickr.api.inc, line 130

Code

function flickr_photoset_get_list($nsid, $page = 1, $other_args = array()) {
  $args = array(
    'user_id' => $nsid,
    'page' => $page,
  );

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