summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 19:31:00 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 19:31:00 +0000
commit5885925b0d2881277c22c6d70d86f1bc060fb133 (patch)
tree828d46033a71340a7edc2bc71133767e4b105920 /modules/comment/comment.module
parente01c325d4ff7adc07d552907f7fb7fdddc56f9b0 (diff)
downloadbrdo-5885925b0d2881277c22c6d70d86f1bc060fb133.tar.gz
brdo-5885925b0d2881277c22c6d70d86f1bc060fb133.tar.bz2
#53348, Handling of deleted/blocked user accounts, patch by jreyero and Zen
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index f7c9383f0..1b6a17217 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -335,6 +335,10 @@ function comment_user($type, $edit, &$user, $category = NULL) {
return $form;
}
+ elseif ($type == 'delete') {
+ db_query('UPDATE {comments} SET uid = 0 WHERE uid = %d', $user->uid);
+ db_query('UPDATE {node_comment_statistics} SET last_comment_uid = 0 WHERE last_comment_uid = %d', $user->uid);
+ }
}
/**