You are here

function node_multiple_delete_confirm_submit in Drupal 6

Same name and namespace in other branches
  1. 4 modules/node.module \node_multiple_delete_confirm_submit()
  2. 5 modules/node/node.module \node_multiple_delete_confirm_submit()
  3. 7 modules/node/node.admin.inc \node_multiple_delete_confirm_submit()
1 string reference to 'node_multiple_delete_confirm_submit'
node_multiple_delete_confirm in modules/node/node.admin.inc

File

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

Code

function node_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['nodes'] as $nid => $value) {
      node_delete($nid);
    }
    drupal_set_message(t('The items have been deleted.'));
  }
  $form_state['redirect'] = 'admin/content/node';
  return;
}