MDL-20538 get rid of badly name-spaced constants from lib/questionlib.php.
Unfortunately, they are used all over the import/export code, so I cannot eliminate them completely. However, I was able to move them out of the core library.
This commit is contained in:
@@ -41,22 +41,6 @@ require_once($CFG->dirroot . '/question/type/questiontypebase.php');
|
||||
|
||||
/// CONSTANTS ///////////////////////////////////
|
||||
|
||||
/**#@+
|
||||
* The core question types.
|
||||
*/
|
||||
define("SHORTANSWER", "shortanswer");
|
||||
define("TRUEFALSE", "truefalse");
|
||||
define("MULTICHOICE", "multichoice");
|
||||
define("RANDOM", "random");
|
||||
define("MATCH", "match");
|
||||
define("RANDOMSAMATCH", "randomsamatch");
|
||||
define("DESCRIPTION", "description");
|
||||
define("NUMERICAL", "numerical");
|
||||
define("MULTIANSWER", "multianswer");
|
||||
define("CALCULATED", "calculated");
|
||||
define("ESSAY", "essay");
|
||||
/**#@-*/
|
||||
|
||||
/**
|
||||
* Constant determines the number of answer boxes supplied in the editing
|
||||
* form for multiple choice and similar question types.
|
||||
|
||||
Reference in New Issue
Block a user