function Mongodb_VoteStorage::addVote in Voting API 7.3
Same name and namespace in other branches
- 8.3 votingapi.api.php \Mongodb_VoteStorage::addVote()
Save a vote in the database.
Parameters
$vote instance of VotingApi_Vote.:
File
- ./
votingapi.api.php, line 135 - Provides hook documentation for the VotingAPI module.
Class
Code
function addVote(&$vote) {
mongodb_collection('votingapi_vote')
->insert($vote);
}