node_delete_confirm

Definition

node_delete_confirm($node)
node/node.module, line 2383

Description

Menu callback -- ask for confirmation of node deletion

Code

<?php
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'));
}
?>