function poll_user in Drupal 6
Same name and namespace in other branches
- 4 modules/poll.module \poll_user()
- 5 modules/poll/poll.module \poll_user()
Implementation of hook_user().
File
- modules/
poll/ poll.module, line 777 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Code
function poll_user($op, &$edit, &$user) {
if ($op == 'delete') {
db_query('UPDATE {poll_votes} SET uid = 0 WHERE uid = %d', $user->uid);
}
}