function flickr_people_getpublicphotos in Flickr 7
Returns a list of public photos for the given user.
Parameters
string $nsid: NSID of the user whose photos you want.
Return value
array $response Response from the flickr method flickr.people.getPublicPhotos. (https://www.flickr.com/services/api/flickr.people.getPublicPhotos.html)
File
- ./
flickr.api.inc, line 443 - Flickr API functions.
Code
function flickr_people_getpublicphotos($nsid, $page = 1, $other_args = array()) {
$args = array(
'user_id' => $nsid,
'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.people.getPublicPhotos', array_merge($args, $other_args));
if ($response) {
return $response;
}
return FALSE;
}