function node_delete_confirm

cis7 node.pages.inc node_delete_confirm($form, &$form_state, $node)
cle7 node.pages.inc node_delete_confirm($form, &$form_state, $node)
elmsmedia7 node.pages.inc node_delete_confirm($form, &$form_state, $node)
icor7 node.pages.inc node_delete_confirm($form, &$form_state, $node)
meedjum_blog7 node.pages.inc node_delete_confirm($form, &$form_state, $node)
mooc7 node.pages.inc node_delete_confirm($form, &$form_state, $node)

Form constructor for the node deletion confirmation form.

See also

node_delete_confirm_submit()

1 string reference to 'node_delete_confirm'
node_menu in modules/node/node.module
Implements hook_menu().

File

modules/node/node.pages.inc, line 523
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

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'));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.