This patch is pending that quiz developer accepts another patch.
This patch add the quiz result into the gradebook grade when the student finish their quiz.

Invoke_all.patch is the proposed patch for quiz module and gradebook_quiz.patch is the gradebook patch

CommentFileSizeAuthor
gradebook_quiz.patch418 bytesmanolopm
invoke_all.patch364 bytesmanolopm

Comments

MGN’s picture

Category: bug » feature

Please see my comments at http://drupal.org/node/432184#comment-1472018. I think all of this can be done within a separate (optional) module file using the standard drupal API hooks. This would avoid unnecessary dependency between gradebook and quiz and still provide the functionality that you need.

MGN’s picture

slampy’s picture

I tried this patch with the latest stable realease of Quiz and Gradebook and I get this error:
warning: Missing argument 3 for quiz_quiz_finished() in /home/www/drupal/sites/all/modules/quiz/quiz.module on line 1352.

AntiNSA’s picture

Arrgghh I really need this I have no idea how to manage the resulst for 4-500 students without the ability to filter results!

AntiNSA’s picture

I am trying to figure out a strategy to manage 4-500 quiz results from studetns in different classes. But right now all results are listed on one page for one quiz type. I hate to make 10 different quiz versions as I actually only have 2 quiz versions to give. To recreate 10 versions that are exact dupluicates in order to merely show a seperate results page is time consuming and unefficient.

Right now I am assighning quizes as a organic group post type. This allopws the quiz to be distributed by task and filtered to the correct classes by og.

In og I use gradebook to track all assignments and provide student grade forms for everything. Very nice.

How can I get the quiz results into a manageable per og display? I cant see any other way than to recreate tests with independent tests names. Very tedious. Let me know any iideas or how to work with results in views or add the patch for gradebook integration.

MGN’s picture

Title: Better integration with quiz module » Provide better integration with the quiz module
Category: feature » task
Priority: Minor » Normal

But right now all results are listed on one page for one quiz type.

Is this page generated by the quiz module? If so, you might need to bring this up on the quiz issue queue.

It sounds like you are requesting og integration for the quiz module....I am not sure that gradebook can do anything here, but correct me if I am missing something.

I still like the idea of integrating with the quiz module to allow quiz results to be automatically entered into the gradebook. Perhaps that is your point...if gradebook did this, you wouldn't need to use the results pages generated by quiz?

I need to checkout the quiz module to learn more about this. I am setting this as a task for anyone who would like to contribute.

AntiNSA’s picture

I still like the idea of integrating with the quiz module to allow quiz results to be automatically entered into the gradebook. Perhaps that is your point...if gradebook did this, you wouldn't need to use the results pages generated by quiz?

yes this is what I mean...

MGN’s picture

Category: task » feature
Status: Active » Fixed

It looks like quiz now implements the hook (hook_quiz_finished) that manolopm provided. I've now added a new gradebook.quiz.inc file to implement this hook. This file is conditionally included whenever the quiz module is present.

Like any other node, quizzes can be designated as an assignment type. When the teacher creates a quiz and assigns a gradebook category and other assignment information (like the number of possible points), it will be listed in the appropriate gradebook(s). When a student takes the quiz, their grade will automatically be entered into the gradebook. The points awarded are determined by multiplying the quiz correct answer percentage by the assignment points possible - just as manolopm did in the initial patch.

I am marking this as fixed because it has now been committed to 6.x-2.x-dev in cvs. It could certainly use some testing. If you think of other ways to improve quiz integration, go ahead and reopen this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mhals’s picture

Status: Closed (fixed) » Active

Quiz module allows administrators to configure each quiz to store the best result, the newest result, or all results. Gradebook appears to store only the newest result (or have i missed something?). Would it be possible for Gradebook to respect this Quiz setting?

AntiNSA’s picture

I will test the integration too.. it is on m list of things to do.