MDL-29808 qtypes: use standard pluginname strings and update version.php
[moodle.git] / question / type / upgrade.txt
CommitLineData
226b3124
TH
1This files describes API changes for question type plugins.
2
3=== 2.2 ===
4
5* The old
6 public function requires_qtypes()
7method is no more. Instead use the ->dependencies facility in version.php. E.g.
8$plugin->dependencies = array(
9 'qtype_numerical' => 2011102700,
10);
11
12* The plugin name and related strings used to be defined in language strings
13called the same thing as the format, for example:
14
15$string['addingdescription'] = 'Adding a Description';
16$string['description'] = 'Description';
17$string['description_help'] = 'A description is not really a question type. It simply enables text to be displayed without requiring any answers, similar to a label on the course page.
18$string['description_link'] = 'A description is not really a question type. It simply enables text to be displayed without requiring any answers, similar to a label on the course page.
19$string['descriptionsummary'] = 'This is not actually a question. Instead it is a way to add some instructions, rubric or other content to the activity. This is similar to the way that labels can be used to add content to the course page.';
20$string['editingdescription'] = 'Editing a Description';
21
22All these need to be changed to use the standard string name pluginname, as for
23other plugin types, and similar for the other strings.
24
25$string['pluginname'] = 'Description';
26$string['pluginname_help'] = 'A description is not really a question type. It simply enables text to be displayed without requiring any answers, similar to a label on the course page.
27$string['pluginname_link'] = 'A description is not really a question type. It simply enables text to be displayed without requiring any answers, similar to a label on the course page.
28$string['pluginnameadding'] = 'Adding a Description';
29$string['pluginnameediting'] = 'Editing a Description';
30$string['pluginnamesummary'] = 'This is not actually a question. Instead it is a way to add some instructions, rubric or other content to the activity. This is similar to the way that labels can be used to add content to the course page.';
31
32The old strings will continue to work, but only until Moodle 2.3 is released.