function flickr_favorites_getpubliclist in Flickr 7
Returns a list of favorite public photos for the given user.
Parameters
string $nsid: NSID of the user whose photoset tags will be returned.
string $page: Page of results to return.
Return value
array Response from the flickr method flickr.favorites.getPublicList. (https://www.flickr.com/services/api/flickr.favorites.getPublicList.html)
1 call to flickr_favorites_getpubliclist()
- flickr_album in ./
flickr.inc - Render multiple photos as an album.
File
- ./
flickr.api.inc, line 107 - Flickr API functions.
Code
function flickr_favorites_getpubliclist($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.favorites.getPublicList', array_merge($args, $other_args));
if ($response) {
return $response['photos'];
}
return FALSE;
}