function comment_delete

cis7 comment.module comment_delete($cid)
cle7 comment.module comment_delete($cid)
elmsmedia7 comment.module comment_delete($cid)
icor7 comment.module comment_delete($cid)
meedjum_blog7 comment.module comment_delete($cid)
mooc7 comment.module comment_delete($cid)

Delete a comment and all its replies.

Parameters

$cid: The comment to delete.

1 call to comment_delete()
comment_confirm_delete_submit in modules/comment/comment.admin.inc
Process comment_confirm_delete form submissions.
11 string references to 'comment_delete'
comment_delete_multiple in modules/comment/comment.module
Delete comments and all their replies.
drupal-6.filled.database.php in modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
drupal-6.og-ui.database.php in sites/all/modules/ulmus/og/og_ui/tests/drupal-6.og-ui.database.php
Filled installation of Drupal 6.17, for test purposes.
drupal-6.og.database.php in sites/all/modules/ulmus/og/tests/drupal-6.og.database.php
Filled installation of Drupal 6.17, for test purposes.
drupal-6.trigger.database.php in modules/simpletest/tests/upgrade/drupal-6.trigger.database.php
Test content for the trigger upgrade path.

... See full list

File

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

Code

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