MDL-29058 question export: include files from hints & combined feedback.
[moodle.git] / question / type / upgrade.txt
CommitLineData
78fc17eb
TH
1This files describes API changes for question type plugins.
2
3=== 2.2 ===
4
5* The XML import/export base class has had some minor API changes. The
6 - write_combined_feedback method now requires that you pass the questionid and
7 contextid. (MDL-29058)
8 - calls to the import_hints and import_answer methods now should pass the question
9 text format as the last argument, to be used as a default if necessary. (MDL-29739)
10 If you do not upgrade your code, it will not break, but there will be PHP
11 warnings, and it the export will not work 100% correctly.
12
13* Question type plugins should start using a string called 'pluginname' for the
14 question type name, as with other plugins. Using a string with the same name
15 as the question type (e.g. get_string('essay', 'qtype_essay') will be supported
16 for one more release, but will generate a debugging warning.