diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-26 19:31:00 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-26 19:31:00 +0000 |
commit | 5885925b0d2881277c22c6d70d86f1bc060fb133 (patch) | |
tree | 828d46033a71340a7edc2bc71133767e4b105920 /modules/poll | |
parent | e01c325d4ff7adc07d552907f7fb7fdddc56f9b0 (diff) | |
download | brdo-5885925b0d2881277c22c6d70d86f1bc060fb133.tar.gz brdo-5885925b0d2881277c22c6d70d86f1bc060fb133.tar.bz2 |
#53348, Handling of deleted/blocked user accounts, patch by jreyero and Zen
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 1cd9fce8b..7d452d5f4 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -492,3 +492,12 @@ function poll_update($node) { } } } + +/** + * Implementation of hook_user(). + */ +function poll_user($op, &$edit, &$user) { + if ($op == 'delete') { + db_query('UPDATE {poll_votes} SET uid = 0 WHERE uid = %d', $user->uid); + } +} |