You are here

function node_delete_confirm_submit in Drupal 4

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

Execute node deletion

File

modules/node.module, line 1957
The core that allows content to be submitted to the site.

Code

function node_delete_confirm_submit($form_id, $form_values) {
  if ($form_values['confirm']) {
    node_delete($form_values['nid']);
  }
  return '';
}