| 5 user.module | user_external_load($authname) |
| 6 user.module | user_external_load($authname) |
| 7 user.module | user_external_load($authname) |
| 8 user.module | user_external_load($authname) |
Fetches a user object based on an external authentication source.
Parameters
string $authname: The external authentication username.
Return value
A fully-loaded user object if the user is found or FALSE if not found.
3 calls to user_external_load()
File
- modules/
user/ user.module, line 245 - Enables the user registration and login system.
Code
function user_external_load($authname) {
$uid = db_query("SELECT uid FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchField();
if ($uid) {
return user_load($uid);
}
else {
return FALSE;
}
}
Login or register to post comments