function user_edit_delete_submit

6.x user.pages.inc user_edit_delete_submit($form, &$form_state)

Submit function for the 'Delete' button on the user edit form.

1 string reference to 'user_edit_delete_submit'
user_profile_form in drupal-6.x/modules/user/user.pages.inc
Form builder; edit a user account or one of their profile categories.

File

drupal-6.x/modules/user/user.pages.inc, line 303
User page callback file for the user module.

Code

function user_edit_delete_submit($form, &$form_state) {
  $destination = '';
  if (isset($_REQUEST['destination'])) {
    $destination = drupal_get_destination();
    unset($_REQUEST['destination']);
  }
  // Note: We redirect from user/uid/edit to user/uid/delete to make the tabs disappear.
  $form_state['redirect'] = array("user/" . $form_state['values']['_account']->uid . "/delete", $destination);
}