Merge branch 'MDL-70326-MOODLE_310_STABLE' of https://github.com/durzo/moodle into...
[moodle.git] / question / format / upgrade.txt
CommitLineData
64679179
TH
1This files describes API changes for question import/export format plugins.
2
1dab8faa
JB
3=== 3.6 ===
4
5* Saving question category descriptions (info) is now supported in Moodle XML import/export format.
6New xml-structure snippet for a question category:
7<question type="category">
73311d31
JP
8 <category>
9 <text>${$contexttypename}$/{$category_path}</text>
10 </category>
11 <info format="{$format}">
12 <text>{$info_categorydescription}</text>
13 </info>
1dab8faa
JB
14</question>
15* The method importprocess() in question/format.php no longer accepts $category as a parameter.
16If required in a plugin then please override this method.
17
054124a3
DP
18=== 2.3 ===
19
20* This plugin type now supports cron in the standard way. If required, Create a
21 lib.php file containing
22function qformat_mypluginname_cron() {};
23
4d188926
TH
24=== 2.1.5 / 2.2.3 / 2.3 ===
25
26* The readquestions method used to take a second argument $context. However, at
27 the point where this method was called, it was impossible to know what
28 context the quetsions were going to be saved into, so the value could be
29 wrong. Also, none of the standard question formats were using this argument,
30 so it was removed. See MDL-32220.
31
64679179
TH
32=== 2.2 ===
33
34* The plugin name used to be defined in a string called the same thing as the
35format, with assoicated help strings, for example:
36
37$string['aiken'] = 'Aiken format';
38$string['aiken_help'] = 'This is a simple format ...';
39$string['aiken_link'] = 'qformat/aiken';
40
41This needs to be changed to use the standard string name pluginname, as for
42other plugin types.
43
44$string['pluginname'] = 'Aiken format';
45$string['pluginname_help'] = 'This is a simple format ...';
46$string['pluginname_link'] = 'qformat/aiken';