diff options
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index 7bd72f8ae..71f353d7f 100644 --- a/modules/watchdog.module +++ b/modules/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() { |