function quiz_admin_results in Quiz 5
Same name and namespace in other branches
- 8.6 quiz.admin.inc \quiz_admin_results()
- 8.4 quiz.admin.inc \quiz_admin_results()
- 8.5 quiz.admin.inc \quiz_admin_results()
- 5.2 quiz.module \quiz_admin_results()
- 6.6 quiz.admin.inc \quiz_admin_results()
- 6.2 quiz.admin.inc \quiz_admin_results()
- 6.3 quiz.admin.inc \quiz_admin_results()
- 6.4 quiz.admin.inc \quiz_admin_results()
- 6.5 quiz.admin.inc \quiz_admin_results()
- 7.6 quiz.admin.inc \quiz_admin_results()
- 7 quiz.admin.inc \quiz_admin_results()
- 7.4 quiz.admin.inc \quiz_admin_results()
- 7.5 quiz.admin.inc \quiz_admin_results()
- 6.x quiz.admin.inc \quiz_admin_results()
1 string reference to 'quiz_admin_results'
- quiz_menu in ./
quiz.module - Implementation of hook_menu().
File
- ./
quiz.module, line 1409 - Quiz Module
Code
function quiz_admin_results() {
$result = db_fetch_object(db_query('SELECT quiz.nid FROM {quiz} quiz, {quiz_result} quiz_result WHERE quiz_result.quiz_nid = quiz.nid AND quiz_result.rid = %d', arg(2)));
if ($result->nid) {
$quiz = node_load($result->nid);
$questions = _quiz_get_answers(arg(2));
$score = quiz_calculate_score(arg(2));
$summary = _quiz_get_summary_text($quiz, $score);
return theme('quiz_admin_summary', $quiz, $questions, $score, $summary);
}
else {
drupal_not_found();
}
}