summaryrefslogtreecommitdiff
path: root/modules/watchdog
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/watchdog
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/watchdog')
-rw-r--r--modules/watchdog/watchdog.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index 7bd72f8ae..71f353d7f 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -62,6 +62,15 @@ function watchdog_cron() {
}
/**
+ * Implementation of hook_user().
+ */
+function watchdog_user($op, &$edit, &$user) {
+ if ($op == 'delete') {
+ db_query('UPDATE {watchdog} SET uid=0 WHERE uid=%d', $user->uid);
+ }
+}
+
+/**
* Menu callback; displays a listing of log messages.
*/
function watchdog_overview() {