comment_confirm_delete_submit

  1. drupal
    1. 4.7
    2. 5 comment.module
    3. 6 comment.admin.inc
    4. 7 comment.admin.inc
Versions
4.7 – 5 comment_confirm_delete_submit($form_id, $form_values)
6 – 7 comment_confirm_delete_submit($form, &$form_state)

Code

modules/comment.module, line 895

<?php
function comment_confirm_delete_submit($form_id, $form_values) {
  $comment = $form_values['comment'];

  // Delete comment and its replies.
  _comment_delete_thread($comment);

  _comment_update_node_statistics($comment->nid);

  // Clear the cache so an anonymous user sees that his comment was deleted.
  cache_clear_all();
  drupal_set_message(t('The comment and all its replies have been deleted.'));
  return "node/$comment->nid";
}
?>