You are here

function node_delete_confirm_submit in Drupal 6

Same name and namespace in other branches
  1. 4 modules/node.module \node_delete_confirm_submit()
  2. 5 modules/node/node.module \node_delete_confirm_submit()
  3. 7 modules/node/node.pages.inc \node_delete_confirm_submit()

Execute node deletion

File

modules/node/node.pages.inc, line 518
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

function node_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    node_delete($form_state['values']['nid']);
  }
  $form_state['redirect'] = '<front>';
}