You are here

function flickr_get_group_photos in Flickr 6

Parameters

$nid: nsid of the group whose photos you want

Return value

response from the flickr method flickr.groups.pools.getPhotos (http://www.flickr.com/services/api/flickr.groups.pools.getPhotos.html)

1 call to flickr_get_group_photos()
_flickr_block_group_recent in block/flickr_block.module

File

./flickr.api.inc, line 280

Code

function flickr_get_group_photos($nsid, $page = 1, $other_args = array()) {

  // TODO change name to flickr_groups_pools_get_photos() ?
  $args = array(
    'group_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.groups.pools.getPhotos', array_merge($args, $other_args));
  if ($response) {
    return $response['photos'];
  }
  return FALSE;
}