You are here

function user_multiple_delete_confirm_submit in Drupal 6

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

File

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

Code

function user_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['accounts'] as $uid => $value) {
      user_delete($form_state['values'], $uid);
    }
    drupal_set_message(t('The users have been deleted.'));
  }
  $form_state['redirect'] = 'admin/user/user';
  return;
}