function comment_delete

7.x comment.module comment_delete($cid)
6.x comment.admin.inc comment_delete($cid = NULL)

Delete a comment and all its replies.

Parameters

$cid: The comment to delete.

2 calls to comment_delete()
comment_confirm_delete_submit in drupal-7.x/modules/comment/comment.admin.inc
Process comment_confirm_delete form submissions.
EntityCrudHookTestCase::testCommentHooks in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on comments.
5 string references to 'comment_delete'
comment_delete_multiple in drupal-7.x/modules/comment/comment.module
Delete comments and all their replies.
node_action_info in drupal-7.x/modules/node/node.module
Implements hook_action_info().
trigger_comment_delete in drupal-7.x/modules/trigger/trigger.module
Implements hook_comment_delete().
trigger_test_action_info in drupal-7.x/modules/trigger/tests/trigger_test.module
Implements hook_action_info().
trigger_trigger_info in drupal-7.x/modules/trigger/trigger.module
Implements hook_trigger_info().

File

drupal-7.x/modules/comment/comment.module, line 1606
Enables users to comment on published content.

Code

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