MDL-21802 backporting patch for vulnerability in CAS client library
[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
10* replace STATEMENTS section in db/install.xml by 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
e8f1ec0f 13* new mandatory intro and introformat table fields in module tables
9c82ff2a 14* completely rewrite file handling
15* rewrite backup/restore
16* rewrite trusttext support - new db table columns needed
17* migrate all module features from mod_edit.php form to lib.php/modulename_supports() function
398a160d 18* implement new gradebook support (legacy 1.8.x grading not supported anymore)
6f5e0852 19* migrate custom resource module subtypes into separate modules
6c669efd 20* migrate to new comments subsystem
af34490a 21* use new $PAGE and $OUTPUT instead of old weblib functions
22* theme changes: move plugin styles into mod/xxx/styles.css and use new css markers for images,
23 move all images into new mod/xxx/pix/ directory and use new outputlib api
24 move module icon to mod/xxx/pix/icon.gif
cbcc9852 25 old global $THEME is fully replaced by $OUTPUT
78946b9b 26
9c82ff2a 27
28optional - no changes needed in older code:
29* portfolio support
30* course completion tracking support
664d7d6e 31* add new navigation features
9c82ff2a 32
35TODO: add links to docs