function user_delete_comment_delete in User Delete 5
Same name and namespace in other branches
- 6 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 449 - User delete - Let users delete their own account.
Code
function user_delete_comment_delete($cid = NULL) {
$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);
}