You are here

function fasttoggle_user_option_confirm in Fasttoggle 6

Same name and namespace in other branches
  1. 5 fasttoggle.module \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.toggle.inc
Menu callback. Toggle the status of a user if the action is confirmed via POST. Otherwise, display a confirmation form.

File

./fasttoggle.toggle.inc, line 161
Handles toggling of options.

Code

function fasttoggle_user_option_confirm($form_state, $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'));
}