You are here

function node_delete_confirm_submit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/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/node.module, line 2404
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

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