You are here

function gauth_user_services_user_account_delete 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_delete()

Function returns a form to confirm delete of account.

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

File

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

Code

function gauth_user_services_user_account_delete($form, &$form_state, $account_id) {
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $account_id,
  );
  $question = check_plain(t('Are you sure you want to delete this account'));
  $path = 'user/' . arg(1) . '/gauth';
  $description = check_plain(t("This account will be deleted from the system and won't be available"));
  $yes = check_plain(t('Delete'));
  $no = check_plain(t('Cancel'));
  return confirm_form($form, $question, $path, $description, $yes, $no);
}