You are here

function user_external_load in Drupal 4

Same name and namespace in other branches
  1. 5 modules/user/user.module \user_external_load()
  2. 6 modules/user/user.module \user_external_load()
  3. 7 modules/user/user.module \user_external_load()
1 call to user_external_load()
user_authenticate in modules/user.module

File

modules/user.module, line 23
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_object($result)) {
    return user_load($user);
  }
  else {
    return 0;
  }
}