more block upgrade notes
[moodle.git] / blocks / upgrade.txt
CommitLineData
795a08ad 1This files describes API changes in /blocks/* - activity modules,
2information provided here is intended especially for developers.
3
4=== 2.0 ===
5
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
11* move post instalation code from install() method into db/install.php
12* completely rewrite file handling
13* rewrite backup/restore
78946b9b
PS
14* theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
15 move all images into new blocks/xxx/pix/ directory and use new outputlib api
cbcc9852 16 old global $THEME is fully replaced by $OUTPUT
19538d8c
PS
17* remove '_utf8' from language pack names, use new {$a} syntax in language packs
18* use 'pluginname' lang pack identifier instead of 'blockname'
795a08ad 19
20optional - no changes needed in older code:
4ca6cfbf 21*
795a08ad 22
23
24TODO: add links to docs