adding more upgrade info
[moodle.git] / mod / upgrade.txt
9c82ff2a 1This files describes API changes in /mod/* - activity modules,
2information provided here is intended especially for developers.
4=== 2.0 ===
6required changes in code:
7* use new DML syntax everywhere
8* use new DDL syntax in db/upgrade.php
9* replace defaults.php by settings.php and db/install.php
8026a943 10* replace STATEMENTS section in db/install.xml with PHP code db/install.php
9cb56578 11* move post installation code from lib.php into db/install.php
56f7ff74 12* move uninstallation code from lib.php to db/uninstall.php
13* new mandatory naming of intro and introformat table fields in module tables,
14 the presence of these fields is indicated in xxx_plugin_supports()
9c82ff2a 15* completely rewrite file handling
16* rewrite backup/restore
17* rewrite trusttext support - new db table columns needed
18* migrate all module features from mod_edit.php form to lib.php/modulename_supports() function
398a160d 19* implement new gradebook support (legacy 1.8.x grading not supported anymore)
6f5e0852 20* migrate custom resource module subtypes into separate modules
6c669efd 21* migrate to new comments subsystem
af34490a 22* use new $PAGE and $OUTPUT instead of old weblib functions
23* theme changes: move plugin styles into mod/xxx/styles.css and use new css markers for images,
24 move all images into new mod/xxx/pix/ directory and use new outputlib api
25 move module icon to mod/xxx/pix/icon.gif
cbcc9852 26 old global $THEME is fully replaced by $OUTPUT
8026a943 27 create plugin renderers
78946b9b 28
9c82ff2a 29
30optional - no changes needed in older code:
31* portfolio support
32* course completion tracking support
33* new navigation features
34* new comments API
35* new ratings API
9c82ff2a 36
39TODO: add links to docs