Commit 10867760 authored by webchick's avatar webchick

#718962 by add1sun, Pasqualle, jhodgdon: Fixed user_external_load() is undocumented.

parent 08a07d77
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment