You are here

function _quiz_pick_result_option in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.module \_quiz_pick_result_option()
  2. 5.2 quiz.module \_quiz_pick_result_option()
  3. 6.6 quiz.module \_quiz_pick_result_option()
  4. 6.2 quiz.module \_quiz_pick_result_option()
  5. 6.3 quiz.module \_quiz_pick_result_option()
  6. 6.4 quiz.module \_quiz_pick_result_option()
  7. 6.5 quiz.module \_quiz_pick_result_option()
  8. 7.6 quiz.module \_quiz_pick_result_option()
  9. 7.4 quiz.module \_quiz_pick_result_option()
  10. 7.5 quiz.module \_quiz_pick_result_option()

Get summary text for a particular score from a set of result options.

Parameters

$qnid: The quiz node id.

$qvid: The quiz node revision id.

$score: The user's final score.

Return value

Summary text for the user's score.

1 call to _quiz_pick_result_option()
_quiz_get_summary_text in ./quiz.module
Get the summary message for a completed quiz.

File

./quiz.module, line 3267
Quiz Module

Code

function _quiz_pick_result_option($qnid, $qvid, $score) {
  return db_query('SELECT option_summary, option_summary_format FROM {quiz_node_result_options}
      WHERE nid = :nid AND vid = :vid AND :option BETWEEN option_start AND option_end', array(
    ':nid' => $qnid,
    ':vid' => $qvid,
    ':option' => $score,
  ))
    ->fetch();
}