comment_confirm_delete

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 comment_confirm_delete(&$form_state, $comment)

Form builder; Builds the confirmation form for deleting a single comment.

See also

comment_confirm_delete_submit()

Verwandte Themen

Code

modules/comment/comment.admin.inc, line 241

<?php
function comment_confirm_delete(&$form_state, $comment) {
  $form = array();
  $form['#comment'] = $comment;
  return confirm_form(
    $form, 
    t('Are you sure you want to delete the comment %title?', array('%title' => $comment->subject)), 
    'node/' . $comment->nid, 
    t('Any replies to this comment will be lost. This action cannot be undone.'), 
    t('Delete'), 
    t('Cancel'), 
    'comment_confirm_delete');
}
?>

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