function advpoll_check_electoral_list in Advanced Poll 7.2
Same name and namespace in other branches
- 7.3 includes/advpoll_voteapi.inc \advpoll_check_electoral_list()
- 7 includes/advpoll_voteapi.inc \advpoll_check_electoral_list()
1 call to advpoll_check_electoral_list()
- advpoll_user_eligibility in includes/
advpoll_voteapi.inc
File
- includes/
advpoll_voteapi.inc, line 261
Code
function advpoll_check_electoral_list($uid, $nid) {
$result = db_query('SELECT uid
FROM {advpoll_electoral_list}
WHERE uid = :uid AND nid = :nid', array(
':uid' => $uid,
':nid' => $nid,
))
->fetchField();
if ($result) {
return TRUE;
}
return FALSE;
}