You are here

function user_external_load in Drupal 6

Same name and namespace in other branches
  1. 4 modules/user.module \user_external_load()
  2. 5 modules/user/user.module \user_external_load()
  3. 7 modules/user/user.module \user_external_load()
1 call to user_external_load()
openid_authentication in modules/openid/openid.module
Authenticate a user or attempt registration.

File

modules/user/user.module, line 90
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;
  }
}