function node_delete_confirm
Same name and namespace in other branches
- 6.x drupal-6.x/modules/node/node.pages.inc \node_delete_confirm()
Form constructor for the node deletion confirmation form.
See also
1 string reference to 'node_delete_confirm'
- node_menu in drupal-7.x/
modules/ node/ node.module - Implements hook_menu().
Archivo
- drupal-7.x/
modules/ node/ node.pages.inc, line 523 - Page callbacks for adding, editing, deleting, and revisions management for content.
Código
function node_delete_confirm($form, &$form_state, $node) {
$form['#node'] = $node;
// Always provide entity id in the same form key as in the entity edit form.
$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)), 'node/' . $node->nid, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}