You are here

function user_confirm_delete in Drupal 6

Same name and namespace in other branches
  1. 5 modules/user/user.module \user_confirm_delete()

Form builder; confirm form for user deletion.

See also

user_confirm_delete_submit()

Related topics

1 string reference to 'user_confirm_delete'
user_menu in modules/user/user.module
Implementation of hook_menu().

File

modules/user/user.pages.inc, line 319
User page callback file for the user module.

Code

function user_confirm_delete(&$form_state, $account) {
  $form['_account'] = array(
    '#type' => 'value',
    '#value' => $account,
  );
  return confirm_form($form, t('Are you sure you want to delete the account %name?', array(
    '%name' => $account->name,
  )), 'user/' . $account->uid, t('All submissions made by this user will be attributed to the anonymous account. This action cannot be undone.'), t('Delete'), t('Cancel'));
}