diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-05 07:10:06 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-05 07:10:06 +0000 |
commit | 108677607dee12278ec177786ea28ad1b7f3b3d5 (patch) | |
tree | 6912e7b6eb556f86ed7d3c9449ecf00c87463557 | |
parent | 08a07d779575a8c3c28b48060f3273ca398bdce7 (diff) | |
download | brdo-108677607dee12278ec177786ea28ad1b7f3b3d5.tar.gz brdo-108677607dee12278ec177786ea28ad1b7f3b3d5.tar.bz2 |
#718962 by add1sun, Pasqualle, jhodgdon: Fixed user_external_load() is undocumented.
-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(); |