summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-06 11:30:12 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-06 11:30:12 +0000
commit026af5df34694c8ca5c3708f3fe23fd10ec160cb (patch)
tree3c557e61dd8b65bc31cd3538d499f08785c7d134 /modules/comment/comment.module
parenteabf7ab4ca423df42e53d11de30a814b39b03800 (diff)
downloadbrdo-026af5df34694c8ca5c3708f3fe23fd10ec160cb.tar.gz
brdo-026af5df34694c8ca5c3708f3fe23fd10ec160cb.tar.bz2
- Patch #310212 by justinrandell, catch, et all: killed in _user hook, as well as two small kittens.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 80e9aad2f..d020f8d31 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -600,13 +600,11 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
}
/**
- * Implementation of hook_user().
+ * Implementation of hook_user_delete().
*/
-function comment_user($type, $edit, &$user, $category = NULL) {
- if ($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);
- }
+function comment_user_delete(&$edit, &$user, $category = NULL) {
+ 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);
}
/**