function flickr_groups_getinfo in Flickr 7
Returns info about a given group.
Parameters
string $id: NSID of the group whose photos you want.
Return value
array $response Response from the flickr method flickr.groups.getInfo. (https://www.flickr.com/services/api/flickr.groups.getInfo.html)
2 calls to flickr_groups_getinfo()
- flickr_album in ./
flickr.inc - Render multiple photos as an album.
- flickr_get_id_type in ./
flickr.inc - Returns the type of ID. User, group or photoset. If is has no @ it is a set, if flickr_groups_getinfo returns 'ok', it is a group. This is not a validation function.
File
- ./
flickr.api.inc, line 369 - Flickr API functions.
Code
function flickr_groups_getinfo($id, $other_args = array()) {
if (flickr_is_nsid($id)) {
$args = array(
'group_id' => $id,
);
}
else {
$args = array(
'group_path_alias' => $id,
);
}
// $return_errors = TRUE avoids error messages when we abuse this function to
// determine betweeen a group and user ID.
$response = flickr_request('flickr.groups.getInfo', array_merge($args, $other_args), $cacheable = FALSE, $return_errors = TRUE);
if ($response) {
return $response;
}
}