function votingapi_select_single_vote_value in Voting API 6
Same name and namespace in other branches
- 6.2 votingapi.module \votingapi_select_single_vote_value()
- 7.2 votingapi.module \votingapi_select_single_vote_value()
Simple wrapper function for votingapi_select_votes. Returns the value of the first vote matching the criteria passed in.
File
- ./
votingapi.module, line 420
Code
function votingapi_select_single_vote_value($criteria = array()) {
if ($votes = votingapi_select_votes($criteria) && !empty($votes)) {
return $votes[0]->value;
}
}