function comment_delete_multiple

Deletes comments and all their replies.

Parameters

$cids: The IDs of the comments to delete.

See also

hook_comment_predelete()

hook_comment_delete()

7 calls to comment_delete_multiple()
CommentLinksTest::setEnvironment in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentLinksTest.php
Re-configures the environment, module settings, and user permissions.
CommentStorageController::postDelete in drupal/core/modules/comment/lib/Drupal/comment/CommentStorageController.php
Overrides Drupal\Core\Entity\DatabaseStorageController::postDelete().
comment_admin_overview_submit in drupal/core/modules/comment/comment.admin.inc
Form submission handler for comment_admin_overview().
comment_delete in drupal/core/modules/comment/comment.module
Deletes a comment and all its replies.
comment_multiple_delete_confirm_submit in drupal/core/modules/comment/comment.admin.inc
Form submission handler for comment_multiple_delete_confirm().

... See full list

File

drupal/core/modules/comment/comment.module, line 1426
Enables users to comment on published content.

Code

function comment_delete_multiple($cids) {
  entity_delete_multiple('comment', $cids);
}