You are here

function gauth_account_token_revoke_form in Google Auth 7.2

Same name and namespace in other branches
  1. 7 gauth.admin.inc \gauth_account_token_revoke_form()

Form builder; Form for revoking access of an google auth account.

Parameters

int $id: Id of the account to be deleted.

See also

gauth_account_token_revoke_form_submit()

1 string reference to 'gauth_account_token_revoke_form'
gauth_menu in ./gauth.module
Implements hook_menu().

File

./gauth.admin.inc, line 240
Administration pages for Google OAuth settings.

Code

function gauth_account_token_revoke_form($form, &$form_state, $id) {
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  $question = check_plain(t('Are you sure you want to revoke access token of this account'));
  $path = 'admin/config/services/gauth_account';
  $description = check_plain(t("This account can't be used for api call until authenticated again"));
  $yes = check_plain(t('Revoke'));
  $no = check_plain(t('Cancel'));
  return confirm_form($form, $question, $path, $description, $yes, $no);
}