function tokenauth_user_reset_confirm in Token authentication 7
Same name and namespace in other branches
- 5 tokenauth.module \tokenauth_user_reset_confirm()
- 6.2 tokenauth.pages.inc \tokenauth_user_reset_confirm()
- 6 tokenauth.pages.inc \tokenauth_user_reset_confirm()
Menu callback: confirm reset users token.
1 string reference to 'tokenauth_user_reset_confirm'
- tokenauth_menu in ./
tokenauth.module - Implements hook_menu().
File
- ./
tokenauth.pages.inc, line 106 - Provides administrative user interface for Tokenauth module.
Code
function tokenauth_user_reset_confirm() {
if (arg(0) == 'user' && is_numeric(arg(1))) {
$uid = arg(1);
}
return confirm_form(array(
'uid' => array(
'#type' => 'hidden',
'#value' => $uid,
),
), t('Are you sure you want to reset this user token?'), "user/{$uid}/tokenauth", t('After the token has been reset, please update your feed readers or other applications that depend on them. This action cannot be undone.'), t('Reset token'), t('Cancel'));
}