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

Form submission handler for file_multiple_delete_confirm().

File

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

Code

function file_multiple_delete_confirm_submit($form, &$form_state) {
  file_delete_multiple(array_keys($form_state['values']['files']));
  cache_clear_all();
  $count = count($form_state['values']['files']);
  watchdog('content', 'Administrator deleted @count files.', array('@count' => $count));

  backdrop_set_message(format_plural($count, 'Deleted 1 file.', 'Deleted @count files.'));
  $form_state['redirect'] = 'admin/content/files';
}