You are here

function gauth_user_services_user_account_revoke in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth_user/gauth_user.pages.inc \gauth_user_services_user_account_revoke()

Function returns a form to confirm revoke access token of account.

1 string reference to 'gauth_user_services_user_account_revoke'
gauth_user_menu in gauth_user/gauth_user.module
Implements hook_menu().

File

gauth_user/gauth_user.pages.inc, line 109
User pages for Google Auth User Services.

Code

function gauth_user_services_user_account_revoke($form, &$form_state, $account_id) {
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $account_id,
  );
  $question = check_plain(t('Are you sure you want to revoke access token of this account'));
  $path = 'user/' . arg(1) . '/gauth';
  $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);
}