You are here

function poll_user in Drupal 4

Same name and namespace in other branches
  1. 5 modules/poll/poll.module \poll_user()
  2. 6 modules/poll/poll.module \poll_user()

Implementation of hook_user().

File

modules/poll.module, line 505
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);
  }
}