You are here

function user_delete_comment_delete in User Delete 6

Same name and namespace in other branches
  1. 5 user_delete.module \user_delete_comment_delete()

Delete comment thread

1 call to user_delete_comment_delete()
user_delete_submit in ./user_delete.module
Deal with the user/content after form submission

File

./user_delete.module, line 408
User delete - Let users delete their own account.

Code

function user_delete_comment_delete($cid = NULL) {
  include_once drupal_get_path('module', 'comment') . '/comment.admin.inc';
  $comment = db_fetch_object(db_query('SELECT c.*, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.cid = %d', $cid));
  _comment_delete_thread($comment);
  _comment_update_node_statistics($comment->nid);
  cache_clear_all();
}