function advpoll_node_delete in Advanced Poll 7.2
Same name and namespace in other branches
- 7.3 advpoll.module \advpoll_node_delete()
- 7 advpoll.module \advpoll_node_delete()
File
- ./
advpoll.module, line 334
Code
function advpoll_node_delete($node) {
// Clear node's votes from the voting api
db_delete('votingapi_vote')
->condition('entity_id', $node->nid)
->execute();
}