You are here

function gauth_account_load_by_uid in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth.module \gauth_account_load_by_uid()

Function loads gauth account id by user id.

1 call to gauth_account_load_by_uid()
gauth_user_delete in ./gauth.module
Implements hook_user_delete().

File

./gauth.module, line 613
Google Auth Api for drupal.

Code

function gauth_account_load_by_uid($uid) {
  return db_select('gauth_accounts')
    ->fields('gauth_accounts', array(
    'name',
  ))
    ->condition('uid', $uid, '=')
    ->execute()
    ->fetchField();
}