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
Admin page callbacks for the Node module.

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 content items.', array('@count' => $count));

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