comment_confirm_delete

modules/comment/comment.module, line 1088

Versions
5
comment_confirm_delete($comment)
6 – 7
comment_confirm_delete(&$form_state, $comment)

Code

<?php
function comment_confirm_delete($comment) {

  $form = array();
  $form['comment'] = array(
    '#type' => 'value',
    '#value' => $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'));
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.