function poll_delete
Same name and namespace in other branches
- 6.x drupal-6.x/modules/poll/poll.module \poll_delete()
Implements hook_delete().
Archivo
- drupal-7.x/
modules/ poll/ poll.module, line 615 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Código
function poll_delete($node) {
db_delete('poll')->condition('nid', $node->nid)->execute();
db_delete('poll_choice')->condition('nid', $node->nid)->execute();
db_delete('poll_vote')->condition('nid', $node->nid)->execute();
}