weekly release 2.6dev
[moodle.git] / question / behaviour / upgrade.txt
CommitLineData
75a31c90
TH
1This files describes API changes for question behaviour plugins.
2
054124a3
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 qbehaviour_mypluginname_cron() {};
8
75a31c90
TH
9=== 2.2 ===
10
3d17cd3f 111) The old
75a31c90
TH
12 public static function get_required_behaviours()
13method is no more. Instead use the ->dependencies facility in version.php. E.g.
14$plugin->dependencies = array(
15 'qbehaviour_immediatefeedback' => 2011102700,
16 'qbehaviour_deferredcbm' => 2011102700
17);
3d17cd3f
TH
18
192) The old required_question_definition_type method has been replaced by a new
20is_compatible_question method. You should change your behaviour to override the
21new method, not the old one. This change has been implemented in a
22backwards-compatible way, so behaviours will not break.