| 5 comment.module | comment_multiple_delete_confirm_submit( |
| 6 comment.admin.inc | comment_multiple_delete_confirm_submit($form, &$form_state) |
| 7 comment.admin.inc | comment_multiple_delete_confirm_submit($form, &$form_state) |
| 8 comment.admin.inc | comment_multiple_delete_confirm_submit($form, &$form_state) |
Perform the actual comment deletion.
File
- modules/
comment.module, line 1083 - Enables users to comment on published content.
Code
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');
}
Login or register to post comments