diff options
-rw-r--r-- | modules/user/user.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 0483b5d33..891bc478c 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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(); |