Is it possible to override the theme('quiz_no_feedback') function at the end of the quiz?
I want to show a passed/not-passed message and a link to go directly to the next quiz/module if this is available.
James Aparicio
Thu, 09/25/2014 - 13:07
Hi medon,
Hi medon,
We are adding this feature in on next release.
If you do not want to wait you can take a look inside profiles/opigno_lms/modules/contrib/quiz/quiz.pages.inc
theme_quiz_take_summary
Best regards
medon
Thu, 09/25/2014 - 13:16
Thanks
Thanks James for pointing to this function, but if you set the quiz to QUIZ_FEEDBACK_NEVER this function is not called right?
Or is that the change you are going to make? -> Always execute theme_quiz_take_summary at the end and let theme_quiz_take_summary decide what to show (pass/fail text and feedback if chosen in the quiz-options)?
James Aparicio
Thu, 09/25/2014 - 14:00
Hi medon,
Hi medon,
You should add the link on both functions theme_quiz_user_summary and theme_quiz_no_feedback
To send the variables to theme_quiz_no_feedback, look at the function quiz_theme inside quiz.module.
Hi medon,
Hi medon,
We are adding this feature in on next release.
If you do not want to wait you can take a look inside profiles/opigno_lms/modules/contrib/quiz/quiz.pages.inc
theme_quiz_take_summary
Best regards
Thanks
Hi medon,
Hi medon,
You should add the link on both functions theme_quiz_user_summary and theme_quiz_no_feedback
To send the variables to theme_quiz_no_feedback, look at the function quiz_theme inside quiz.module.
Best regards