function flickr_photosets_getlist in Flickr 7
Returns the photosets belonging to the specified user.
Parameters
string $nsid: NSID of the user whose photoset list you want.
Return value
array Response from the flickr method flickr.photosets.getList. (https://www.flickr.com/services/api/flickr.photosets.getList.html)
2 calls to flickr_photosets_getlist()
- flickr_block_photosets in block/
flickr_block.module - Photoset block. Block delta: 1 and 4.
- flickr_sets_photosets in sets/
flickr_sets.module - Return a user's photosets (one thumb per set).
File
- ./
flickr.api.inc, line 156 - Flickr API functions.
Code
function flickr_photosets_getlist($nsid, $page = NULL) {
$per_page = !empty($page) ? variable_get('flickr_sets_per_page', 8) : '';
$response = flickr_request('flickr.photosets.getList', array(
'user_id' => $nsid,
'page' => $page,
'per_page' => $per_page,
));
if ($response) {
return $response['photosets']['photoset'];
}
return FALSE;
}