You are here

function _feeds_comment_delete in Feeds Comment Processor 6

2 calls to _feeds_comment_delete()
FeedsCommentProcessor::clear in ./FeedsCommentProcessor.inc
Implementation of FeedsProcessor::clear().
FeedsCommentProcessor::expire in ./FeedsCommentProcessor.inc
Implement expire().

File

./FeedsCommentProcessor.inc, line 398
Class definition of FeedsCommentProcessor.

Code

function _feeds_comment_delete($cid) {
  module_load_include('inc', 'comment', 'comment.admin');
  $to_delete = _comment_load($cid);

  // Delete comment and its replies.
  _comment_delete_thread($to_delete);
  _comment_update_node_statistics($to_delete->nid);
}