function comment_delete

Deletes a comment and all its replies.

Parameters

$cid: The ID of the comment to delete.

2 calls to comment_delete()
comment_confirm_delete_submit in drupal/core/modules/comment/comment.admin.inc
Form submission handler for comment_confirm_delete().
EntityCrudHookTest::testCommentHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on comments.
1 string reference to 'comment_delete'
node_action_info in drupal/core/modules/node/node.module
Implements hook_action_info().

File

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

Code

function comment_delete($cid) {
  comment_delete_multiple(array(
    $cid,
  ));
}