You are here

function votingapi_views_qhandler_currentuser_vote in Voting API 6

Same name and namespace in other branches
  1. 5 votingapi_views.inc \votingapi_views_qhandler_currentuser_vote()

File

./votingapi_views.inc, line 257

Code

function votingapi_views_qhandler_currentuser_vote($field, $fieldinfo, &$query) {
  $table = $fieldinfo['table'];
  $query
    ->add_where("{$table}.uid = ***CURRENT_USER***");
}