You are here

function votingapi_select_single_result_value in Voting API 6

Same name and namespace in other branches
  1. 6.2 votingapi.module \votingapi_select_single_result_value()
  2. 7.2 votingapi.module \votingapi_select_single_result_value()

Simple wrapper function for votingapi_select_results. Returns the value of the first result matching the criteria passed in.

File

./votingapi.module, line 430

Code

function votingapi_select_single_result_value($criteria = array()) {
  return db_result(_votingapi_query('cache', $criteria, 1));
}