function comment_confirm_delete in Drupal 5
Same name and namespace in other branches
- 6 modules/comment/comment.admin.inc \comment_confirm_delete()
- 7 modules/comment/comment.admin.inc \comment_confirm_delete()
1 string reference to 'comment_confirm_delete'
- comment_delete in modules/
comment/ comment.module - Menu callback; delete a comment.
File
- modules/
comment/ comment.module, line 1088 - Enables users to comment on published content.
Code
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'));
}