You are here

function gauth_account_is_authenticated in Google Auth 7

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

Check if an account is authenticated or not.

Parameters

string $account_id: Name or id of the account to be checked

bool $by_name: Set False if passing account id and True for account name

File

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

Code

function gauth_account_is_authenticated($account_id, $by_name = TRUE) {
  return gauth_account_load($account_id, $by_name, array(
    'is_authenticated',
  ));
}