Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added simplified aliases for answer types, as proposed by Thomas Robb…

…. It is now possible to use these aliases:

SHORTANSWER = SA = MW ;
NUMERICAL = NM ;
MULTICHOICE = MC
  • Loading branch information...
commit b63519ebda1cac0aab80f4524316345d1f97b718 1 parent 565e970
authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/quiz/format/multianswer.php
2  mod/quiz/format/multianswer.php
@@ -46,7 +46,7 @@
46 46
 
47 47
 // Remaining ANSWER regexes
48 48
 define("ANSWER_TYPE_DEF_REGEX",
49  
-       '(NUMERICAL)|(MULTICHOICE)|(SHORTANSWER)');
  49
+       '(NUMERICAL|NM)|(MULTICHOICE|MC)|(SHORTANSWER|SA|MW)');
50 50
 define("ANSWER_START_REGEX",
51 51
        '\{([0-9]*):(' . ANSWER_TYPE_DEF_REGEX . '):');
52 52
 

0 notes on commit b63519e

Please sign in to comment.
Something went wrong with that request. Please try again.