function flickr_user_find_by_username in Flickr 5
Same name and namespace in other branches
- 6 flickr.api.inc \flickr_user_find_by_username()
Lookup an nsid for a username.
Parameters
$username: username to look for
Return value
response from the flickr method flickr.people.findByUsername (http://www.flickr.com/services/api/flickr.people.findByUsername.html)
3 calls to flickr_user_find_by_username()
- flickr_admin_settings_submit in ./
flickr.module - flickr_admin_settings_validate in ./
flickr.module - flickr_user_find_by_identifier in ./
flickr.inc - Tries to match an 'identifier' onto a flickr nsid
File
- ./
flickr.inc, line 403
Code
function flickr_user_find_by_username($username) {
$response = flickr_request('flickr.people.findByUsername', array(
'username' => $username,
));
if ($response) {
return $response['user'];
}
return FALSE;
}