Same name and namespace in other branches
  1. 4.6.x modules/comment.module \comment_delete()
  2. 4.7.x modules/comment.module \comment_delete()
  3. 5.x modules/comment/comment.module \comment_delete()
  4. 6.x modules/comment/comment.admin.inc \comment_delete()

Delete a comment and all its replies.

Parameters

$cid: The comment to delete.

2 calls to comment_delete()
comment_confirm_delete_submit in modules/comment/comment.admin.inc
Process comment_confirm_delete form submissions.
EntityCrudHookTestCase::testCommentHooks in modules/simpletest/tests/entity_crud_hook_test.test
Tests hook invocations for CRUD operations on comments.
3 string references to 'comment_delete'
node_action_info in modules/node/node.module
Implements hook_action_info().
trigger_comment_delete in modules/trigger/trigger.module
Implements hook_comment_delete().
trigger_test_action_info in modules/trigger/tests/trigger_test.module
Implements hook_action_info().

File

modules/comment/comment.module, line 1621
Enables users to comment on published content.

Code

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