function poll_delete

Implements hook_delete().

File

modules/poll/poll.module, line 615

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.