user_get_authmaps

5 user.module user_get_authmaps($authname = NULL)
6 user.module user_get_authmaps($authname = NULL)
7 user.module user_get_authmaps($authname = NULL)
8 user.module user_get_authmaps($authname = NULL)

Discover which external authentication module(s) authenticated a username.

Parameters

$authname: A username used by an external authentication module.

Return value

An associative array with module as key and username as value.

1 call to user_get_authmaps()

File

modules/user/user.module, line 1990
Enables the user registration and login system.

Code

function user_get_authmaps($authname = NULL) {
  $authmaps = db_query("SELECT module, authname FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchAllKeyed();
  return count($authmaps) ? $authmaps : 0;
}
Login or register to post comments