1 file.pages.inc file_delete_redirect_form($form, &$form_state)

Submit handler for delete button on file manage forms.

File

core/modules/file/file.pages.inc, line 747
Supports file operations including Manage and Delete.

Code

function file_delete_redirect_form($form, &$form_state) {
  if (isset($_GET['destination'])) {
    unset($_GET['destination']);
  }
  backdrop_goto('file/' . $form_state['file']->fid . '/delete');
}