Allow admins to disable skipping of questions

incrn8 - June 11, 2009 - 04:51
Project:Quiz
Version:6.x-3.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Our client wanted their users to not skip questions accidentally by pressing Next twice. I couldn't find a Skip option anywhere in the UI, so I simply enabled Backwards navigation to handle that scenario. However, I was looking through the code and saw you already have a skip check variable in place, and all that was really missing was a UI option. I did some quick modifications and now there is a Global setting for Allowing Skipping (on by default).

#1

incrn8 - June 11, 2009 - 04:53

Here are the two patches (I don't know how to make one patch for two files yet). One is for quiz.module and the other is for quiz.admin.inc.

AttachmentSize
quiz_admin-inc-skipping-option_488304.patch 834 bytes
quiz_module-skipping-option_488304_01.patch 724 bytes

#2

RogerB - July 8, 2009 - 11:00
Title:Allow admins to disable skipping of questions» Tested OK

Patch worked fine for me. Many thanks incrn8.

#3

incrn8 - July 8, 2009 - 11:56
Title:Tested OK» Allow admins to disable skipping of questions

Glad to hear it worked for you.

Changing title back.

 
 

Drupal is a registered trademark of Dries Buytaert.