function user_external_load in Drupal 5
Same name and namespace in other branches
- 4 modules/user.module \user_external_load()
- 6 modules/user/user.module \user_external_load()
- 7 modules/user/user.module \user_external_load()
1 call to user_external_load()
- user_authenticate in modules/
user/ user.module
File
- modules/
user/ user.module, line 26 - Enables the user registration and login system.
Code
function user_external_load($authname) {
$result = db_query("SELECT uid FROM {authmap} WHERE authname = '%s'", $authname);
if ($user = db_fetch_array($result)) {
return user_load($user);
}
else {
return 0;
}
}