function poll_delete in Drupal 5
Same name and namespace in other branches
- 4 modules/poll.module \poll_delete()
- 6 modules/poll/poll.module \poll_delete()
- 7 modules/poll/poll.module \poll_delete()
Implementation of hook_delete().
File
- modules/
poll/ poll.module, line 75 - 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);
}