Hello,
I was wondering if someone could tell me is my idea is feasible or how I can overcome this problem I am experiecing.
Basically, I was originally using a login system to track my users quiz results and using views I was able to display them back to my users at the end of the e-courses I have been developing.
But due to users with different cookie level I have been forced to scrap the login system. Consequently all my users are anonymous which makes my views method to display results functionless.
So, I was wondering it it would be possible to find out how the quiz results are currently being save and it would be possible to save this in a separate custom session table that I intend on creating in order to track user activity.
As you can imagine I has been very frustrating spending hours developing an application only for the powers above to say in an instant to scrap it and create a new system.
Many thanks for the help,
rhughes
Comments
Comment #1
mbutcher commentedYou might be able to write a module that uses hook_quiz_finished(). See DEVELOPER.txt for info. This hook gets called when a user has completed the quiz.
From there, you should be able to get all of the quiz data and store it wherever you want.
It's not exactly "trivially easy", but from that hook you have access to the entire quiz for that user.
Matt
Comment #2
rhughes commentedGreat, Thanks for the info.
I have an additional question, Where would I find the function which displays the quiz summary page (at the end of the quiz)? I will probably need this to help me display the quiz summary at the of the course.
Comment #3
sivaji_ganesh_jojodae commentedSorry for the late reply. Have a look into function quiz_admin_results in quiz.admin.inc line no ~46.
Comment #4
sivaji_ganesh_jojodae commentedHope #1 and #3 would have helped you, marking this issue as fixed.