1 node.admin.inc node_multiple_delete_confirm_submit($form, &$form_state)

Form submission handler for node_multiple_delete_confirm().

File

core/modules/node/node.admin.inc, line 209
Content administration and module settings UI.

Code

function node_multiple_delete_confirm_submit($form, &$form_state) {
  node_delete_multiple(array_keys($form_state['values']['nodes']));
  cache_clear_all();
  $count = count($form_state['values']['nodes']);
  watchdog('content', 'Deleted @count posts.', array('@count' => $count));

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