MDL-36887 quiz: reorder upgrade.txt's
[moodle.git] / question / format / upgrade.txt
CommitLineData
64679179
TH
1This files describes API changes for question import/export format plugins.
2
dceeeb29
DP
3=== 2.3 ===
4
5* This plugin type now supports cron in the standard way. If required, Create a
6 lib.php file containing
7function qformat_mypluginname_cron() {};
8
4d188926
TH
9=== 2.1.5 / 2.2.3 / 2.3 ===
10
11* The readquestions method used to take a second argument $context. However, at
12 the point where this method was called, it was impossible to know what
13 context the quetsions were going to be saved into, so the value could be
14 wrong. Also, none of the standard question formats were using this argument,
15 so it was removed. See MDL-32220.
16
64679179
TH
17=== 2.2 ===
18
19* The plugin name used to be defined in a string called the same thing as the
20format, with assoicated help strings, for example:
21
22$string['aiken'] = 'Aiken format';
23$string['aiken_help'] = 'This is a simple format ...';
24$string['aiken_link'] = 'qformat/aiken';
25
26This needs to be changed to use the standard string name pluginname, as for
27other plugin types.
28
29$string['pluginname'] = 'Aiken format';
30$string['pluginname_help'] = 'This is a simple format ...';
31$string['pluginname_link'] = 'qformat/aiken';
c2f5e2ab
TH
32
33