You are here

function quiz_get_pass_rate in Quiz 5

Same name and namespace in other branches
  1. 5.2 quiz.module \quiz_get_pass_rate()
  2. 6.6 quiz.module \quiz_get_pass_rate()
  3. 6.2 quiz.module \quiz_get_pass_rate()
  4. 6.3 quiz.module \quiz_get_pass_rate()
  5. 6.4 quiz.module \quiz_get_pass_rate()
  6. 6.5 quiz.module \quiz_get_pass_rate()
  7. 7 quiz.module \quiz_get_pass_rate()
  8. 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;
}