You are here

function votingapi_get_vote_by_id in Voting API 5

1 call to votingapi_get_vote_by_id()
votingapi_delete_vote in ./votingapi.module
Deletes a user's existing vote, if one exists.

File

./votingapi.module, line 360

Code

function votingapi_get_vote_by_id($vote_id) {
  $result = db_query("SELECT * FROM {votingapi_vote} v WHERE vote_id = %d", $vote_id);
  $vote = db_fetch_object($result);
  return $vote;
}