You are here

function comment_delete_soft_remove in Comment Delete 7

Removes comment subject/body values.

Parameters

object $comment: Fully loaded comment object.

3 calls to comment_delete_soft_remove()
comment_delete_keep_replies in ./comment_delete.module
Removes comment while keeping all replies.
comment_delete_move_replies in ./comment_delete.module
Moves comment replies up one thread.
comment_delete_remove_replies in ./comment_delete.module
Removes comment and all replies.

File

./comment_delete.module, line 208
comment_delete.module

Code

function comment_delete_soft_remove($comment) {
  $comment->subject = '';
  $comment->comment_body[$comment->language][0]['value'] = '';
  comment_save($comment);
}