You are here

function user_confirm_delete_submit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/user.module \user_confirm_delete_submit()
  2. 6 modules/user/user.pages.inc \user_confirm_delete_submit()

File

modules/user/user.module, line 1486
Enables the user registration and login system.

Code

function user_confirm_delete_submit($form_id, $form_values) {
  $account = user_load(array(
    'uid' => $form_values['uid'],
  ));
  user_delete((array) $account, $form_values['uid']);
  return 'admin/user/user';
}