You are here

function poll_delete in Drupal 4

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

Implementation of hook_delete().

File

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