function poll_delete

7.x poll.module poll_delete($node)
6.x poll.module poll_delete($node)

Implementation of hook_delete().

File

drupal-6.x/modules/poll/poll.module, line 476
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_delete($node) {
  db_query("DELETE FROM {poll} WHERE nid = %d", $node->nid);
  db_query("DELETE FROM {poll_choices} WHERE nid = %d", $node->nid);
  db_query("DELETE FROM {poll_votes} WHERE nid = %d", $node->nid);
}