1 file.admin.inc file_type_delete_confirm_submit($form, &$form_state)

Process file type delete confirm submissions.

File

core/modules/file/file.admin.inc, line 477
File type editing user interface.

Code

function file_type_delete_confirm_submit($form, &$form_state) {
  file_type_delete($form_state['values']['type']);

  $t_args = array('%name' => $form_state['values']['name']);
  backdrop_set_message(t('The file type %name has been deleted.', $t_args));
  watchdog('file', 'Deleted file type %name.', $t_args, WATCHDOG_NOTICE);

  $form_state['redirect'] = 'admin/structure/file-types';
  return;
}