You are here

function gauth_user_services_delete_form in Google Auth 7

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

Form builder; Form for deleting an google auth services account.

Parameters

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

See also

gauth_account_delete_form_submit()

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

File

gauth_user/gauth_user.admin.inc, line 197
Administration pages for Google Auth User Services.

Code

function gauth_user_services_delete_form($form, &$form_state, $id) {
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  $question = check_plain(t('Are you sure you want to delete this services account'));
  $path = 'admin/config/services/gauth_user';
  $description = check_plain(t("This service account will be deleted from the system and won't be available for end users.  The previous user authentications will still be present."));
  $yes = check_plain(t('Delete'));
  $no = check_plain(t('Cancel'));
  return confirm_form($form, $question, $path, $description, $yes, $no);
}