function gauth_account_delete_form in Google Auth 7
Same name and namespace in other branches
- 7.2 gauth.admin.inc \gauth_account_delete_form()
Form builder; Form for deleting an google auth account.
Parameters
int $id: Id of the account to be deleted.
See also
gauth_account_delete_form_submit()
1 string reference to 'gauth_account_delete_form'
- gauth_menu in ./
gauth.module - Implements hook_menu().
File
- ./
gauth.admin.inc, line 199 - Administration pages for Google OAuth settings.
Code
function gauth_account_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 account'));
$path = 'admin/config/services/gauth_account';
$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);
}