comment_multiple_delete_confirm_submit

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

Perform the actual comment deletion.

Code

modules/comment.module, line 1084

<?php
function comment_multiple_delete_confirm_submit($form_id, $edit) {
  if ($edit['confirm']) {
    foreach ($edit['comments'] as $cid => $value) {
      $comment = _comment_load($cid);
      _comment_delete_thread($comment);
      _comment_update_node_statistics($comment->nid);
    }
    cache_clear_all();
    drupal_set_message(t('The comments have been deleted.'));
  }
  drupal_goto('admin/comment');
}
?>