function node_delete_confirm in Drupal 5
Same name and namespace in other branches
- 4 modules/node.module \node_delete_confirm()
- 6 modules/node/node.pages.inc \node_delete_confirm()
- 7 modules/node/node.pages.inc \node_delete_confirm()
Menu callback -- ask for confirmation of node deletion
1 string reference to 'node_delete_confirm'
- node_menu in modules/
node/ node.module - Implementation of hook_menu().
File
- modules/
node/ node.module, line 2391 - 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($node) {
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => $node->title,
)), isset($_GET['destination']) ? $_GET['destination'] : 'node/' . $node->nid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}