function node_delete_confirm_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/node.module \node_delete_confirm_submit()
- 6 modules/node/node.pages.inc \node_delete_confirm_submit()
- 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>';
}