summaryrefslogtreecommitdiff
path: root/modules/poll/poll.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/poll/poll.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/poll/poll.module')
-rw-r--r--modules/poll/poll.module9
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);
}
+