function auth0_get_auth0_object_from_drupal_uid in Auth0 Single Sign On 7.2
Return the uid of the user with the given Auth0 id.
2 calls to auth0_get_auth0_object_from_drupal_uid()
- auth0_form_user_profile_form_alter in ./
auth0.module - Implements hook_user_form_user_profile_form_alter().
- auth0_user_info_page in ./
auth0.module - Display auth0 info for the given user.
File
- ./
auth0.module, line 574
Code
function auth0_get_auth0_object_from_drupal_uid($uid) {
$rs = db_select('auth0_user', 'a')
->fields('a')
->condition('drupal_id', $uid, '=')
->execute()
->fetch();
if (!empty($rs)) {
$rs = drupal_unpack($rs, 'auth0_object');
unset($rs->auth0_object);
return $rs;
}
return FALSE;
}