MDL-21250 capital letters removal
[moodle.git] / blocks / upgrade.txt
blobce7766f43240f5530545a3488804f0fccd8ade04
1 This files describes API changes in /blocks/* - activity modules,
2 information provided here is intended especially for developers.
4 === 2.0 ===
6 required 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
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
16                  old global $THEME is fully replaced by $OUTPUT
17 * remove '_utf8' from language pack names, use new {$a} syntax in language packs
18 * use 'pluginname' lang pack identifier instead of 'blockname' 
19 * move cron and version number into standard version.php
20 * removed support for old config_global.html, use settings.php
22 optional - no changes needed in older code:
26 TODO: add links to docs