#718962 by add1sun, Pasqualle, jhodgdon: Fixed user_external_load() is undocumented.
parent
08a07d7795
commit
108677607d
|
@ -187,6 +187,15 @@ function user_field_extra_fields() {
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches a user object based on an external authentication source.
|
||||
*
|
||||
* @param string $authname
|
||||
* The external authentication username.
|
||||
*
|
||||
* @return
|
||||
* A fully-loaded user object if the user is found or FALSE if not found.
|
||||
*/
|
||||
function user_external_load($authname) {
|
||||
$uid = db_query("SELECT uid FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchField();
|
||||
|
||||
|
|
Loading…
Reference in New Issue