| Versions | |
|---|---|
| 4.7 – 7 | user_external_load($authname) |
modules/
<?php
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;
}
}
?>