You are here

function delete_all_users_submit in Delete all 7

Same name and namespace in other branches
  1. 5 delete_all.module \delete_all_users_submit()
  2. 6 delete_all.module \delete_all_users_submit()

File

./delete_all.module, line 489
Delete all 7.x module

Code

function delete_all_users_submit($form, &$form_state) {
  ini_set('max_execution_time', DELETE_ALL_MAX_EXECUTION);
  $count = delete_all_users_delete();
  drupal_set_message(t('All users have been deleted. Number of users deleted: !count.', array(
    '!count' => check_plain($count),
  )));
  drupal_goto('admin');
}