function _userpoints_user_exists in User Points 5
Same name and namespace in other branches
- 5.3 userpoints.module \_userpoints_user_exists()
- 5.2 userpoints.module \_userpoints_user_exists()
- 6 userpoints.module \_userpoints_user_exists()
- 7 userpoints.module \_userpoints_user_exists()
1 call to _userpoints_user_exists()
File
- ./
userpoints.module, line 356
Code
function _userpoints_user_exists($uid) {
return (int) db_result(db_query('SELECT COUNT(*) FROM {userpoints} WHERE uid = %d', $uid));
}