| 5 node.module | node_delete_confirm($node) |
| 6 node.pages.inc | node_delete_confirm(&$form_state, $node) |
| 7 node.pages.inc | node_delete_confirm($form, &$form_state, $node) |
| 8 node.pages.inc | node_delete_confirm($form, &$form_state, $node) |
Menu callback -- ask for confirmation of node deletion
1 string reference to 'node_delete_confirm'
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'));
}
Login or register to post comments