1 redirect.admin.inc redirect_edit_form_delete_submit($form, &$form_state)

Form submit handler; handle the 'Delete' button on redirect_edit_form().

File

core/modules/redirect/redirect.admin.inc, line 595
Administrative page callbacks for the Redirect module.

Code

function redirect_edit_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = backdrop_get_destination();
    unset($_GET['destination']);
  }
  $form_state['redirect'] = array('admin/config/urls/redirect/delete/' . $form_state['redirect']->rid, array('query' => $destination));
}