diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-06 11:30:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-06 11:30:12 +0000 |
commit | 026af5df34694c8ca5c3708f3fe23fd10ec160cb (patch) | |
tree | 3c557e61dd8b65bc31cd3538d499f08785c7d134 /modules/poll/poll.module | |
parent | eabf7ab4ca423df42e53d11de30a814b39b03800 (diff) | |
download | brdo-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/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 49fc6d00f..71d6129a7 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -823,10 +823,9 @@ function poll_cancel($form, &$form_state) { } /** - * Implementation of hook_user(). + * Implementation of hook_user_delete(). */ -function poll_user($op, &$edit, &$user) { - if ($op == 'delete') { - db_query('UPDATE {poll_votes} SET uid = 0 WHERE uid = %d', $user->uid); - } +function poll_user_delete(&$edit, &$user) { + db_query('UPDATE {poll_votes} SET uid = 0 WHERE uid = %d', $user->uid); } + |