Merge branch 'MDL-38487_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE
[moodle.git] / blocks / upgrade.txt
blobb7e288e9c9bb2881fca82266547bc4ce5f1b07d9
1 This files describes API changes in /blocks/* - activity modules,
2 information provided here is intended especially for developers.
4 === 2.3 ===
6 required changes in code:
7 * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
8   contains additional options for the file serving. The array should be re-passed
9   to send_stored_file().
11 === 2.0 ===
13 required changes in code:
14 * use new DML syntax everywhere
15 * use new DDL syntax in db/upgrade.php
16 * replace defaults.php by settings.php and db/install.php
17 * replace STATEMENTS section in db/install.xml by db/install.php
18 * move post instalation code from install() method into db/install.php
19 * completely rewrite file handling
20 * rewrite backup/restore
21 * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
22                  move all images into new blocks/xxx/pix/ directory and use new outputlib api
23                  old global $THEME is fully replaced by $OUTPUT
24 * remove '_utf8' from language pack names, use new {$a} syntax in language packs
25 * use 'pluginname' lang pack identifier instead of 'blockname'
26 * move cron and version number into standard version.php
27 * removed support for old config_global.html, use settings.php