comment_delete

Versions
4.6 – 4.7
comment_delete($cid)
5 – 6
comment_delete($cid = NULL)
7
comment_delete($cid)

Delete a comment and all its replies.

Parameters

$cid The comment to delete.

Code

modules/comment/comment.module, line 1400

<?php
function comment_delete($cid) {
  comment_delete_multiple(array($cid));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.