node_delete_confirm

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 node_delete_confirm(&$form_state, $node)

Menu callback -- ask for confirmation of node deletion

Code

modules/node/node.pages.inc, line 498

<?php
function node_delete_confirm(&$form_state, $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')
  );
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen