You are here

function poll_delete in Drupal 6

Same name and namespace in other branches
  1. 4 modules/poll.module \poll_delete()
  2. 5 modules/poll/poll.module \poll_delete()
  3. 7 modules/poll/poll.module \poll_delete()

Implementation of hook_delete().

File

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);
}