function fasttoggle_user_option_confirm in Fasttoggle 5
Same name and namespace in other branches
- 6 fasttoggle.toggle.inc \fasttoggle_user_option_confirm()
 
Confirmation form for the status change of a user.
1 string reference to 'fasttoggle_user_option_confirm'
- fasttoggle_user_option in ./
fasttoggle.module  - Menu callback. Toggle the status of a user if the action is confirmed via POST. Otherwise, display a confirmation form.
 
File
- ./
fasttoggle.module, line 495  - Enables fast toggling of binary or not so binary settings
 
Code
function fasttoggle_user_option_confirm($user, $option) {
  return confirm_form(array(), t('Are you sure you want to set the user %user to %option?', array(
    '%user' => $user->name,
    '%option' => $option,
  )), $_GET['destination'] ? $_GET['destination'] : 'user/' . $user->uid, '', t('Change'), t('Cancel'));
}