function votingapi_select_single_result_value in Voting API 7.2
Same name and namespace in other branches
- 6.2 votingapi.module \votingapi_select_single_result_value()
- 6 votingapi.module \votingapi_select_single_result_value()
Retrieve the value of the first result matching the criteria passed in.
File
- ./
votingapi.module, line 651 - A generalized voting API for Drupal.
Code
function votingapi_select_single_result_value($criteria = array()) {
if ($results = votingapi_select_results($criteria, 1)) {
return $results[0]['value'];
}
}