function quiz_get_pass_rate in Quiz 5
Same name and namespace in other branches
- 5.2 quiz.module \quiz_get_pass_rate()
- 6.6 quiz.module \quiz_get_pass_rate()
- 6.2 quiz.module \quiz_get_pass_rate()
- 6.3 quiz.module \quiz_get_pass_rate()
- 6.4 quiz.module \quiz_get_pass_rate()
- 6.5 quiz.module \quiz_get_pass_rate()
- 7 quiz.module \quiz_get_pass_rate()
- 7.4 quiz.module \quiz_get_pass_rate()
Parameters
$nid: Quiz ID Finds out the pass rate for the quiz.
Return value
integer Returns the pass rate of quiz.
File
- ./
quiz.module, line 345 - Quiz Module
Code
function quiz_get_pass_rate($nid) {
$passrate = db_fetch_object(db_query('SELECT pass_rate FROM {quiz} WHERE nid = %d', $nid));
return $passrate->pass_rate;
}