function user_get_authmaps in Drupal 5
Same name and namespace in other branches
- 4 modules/user.module \user_get_authmaps()
- 6 modules/user/user.module \user_get_authmaps()
- 7 modules/user/user.module \user_get_authmaps()
Accepts an user object, $account, or a DA name and returns an associative array of modules and DA names. Called at external login.
1 call to user_get_authmaps()
- user_authenticate in modules/
user/ user.module
File
- modules/
user/ user.module, line 857 - Enables the user registration and login system.
Code
function user_get_authmaps($authname = NULL) {
$result = db_query("SELECT authname, module FROM {authmap} WHERE authname = '%s'", $authname);
if (db_num_rows($result) > 0) {
while ($authmap = db_fetch_object($result)) {
$authmaps[$authmap->module] = $authmap->authname;
}
return $authmaps;
}
else {
return 0;
}
}