Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
294
Merge Requests
294
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
10867760
Commit
10867760
authored
May 05, 2010
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#718962
by add1sun, Pasqualle, jhodgdon: Fixed user_external_load() is undocumented.
parent
08a07d77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/user/user.module
modules/user/user.module
+9
-0
No files found.
modules/user/user.module
View file @
10867760
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment