You are here

function subuser_confirm_delete_submit in Subuser 5

File

./subuser.module, line 76

Code

function subuser_confirm_delete_submit($form_id, $form_values) {
  $account = user_load(array(
    'uid' => $form_values['uid'],
  ));
  user_delete((array) $account, $form_values['uid']);
  return 'subuser/list';
}