Merge branch 'MDL-38821_master' of git://github.com/dmonllao/moodle
[moodle.git] / blocks / upgrade.txt
blob23518050e13353e1722c94b4f6d5cba307b766de
1 This files describes API changes in /blocks/* - activity modules,
2 information provided here is intended especially for developers.
4 === 2.4 ===
6 Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
7 a specific block to their My Home page. This capability was only defined for blocks where
8 the applicable_formats function does not include "'my' => false" in the returned array,
9 allowing it be added to the My Home page.
11 === 2.3 ===
13 required changes in code:
14 * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
15   contains additional options for the file serving. The array should be re-passed
16   to send_stored_file().
18 === 2.0 ===
20 required changes in code:
21 * use new DML syntax everywhere
22 * use new DDL syntax in db/upgrade.php
23 * replace defaults.php by settings.php and db/install.php
24 * replace STATEMENTS section in db/install.xml by db/install.php
25 * move post instalation code from install() method into db/install.php
26 * completely rewrite file handling
27 * rewrite backup/restore
28 * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
29                  move all images into new blocks/xxx/pix/ directory and use new outputlib api
30                  old global $THEME is fully replaced by $OUTPUT
31 * remove '_utf8' from language pack names, use new {$a} syntax in language packs
32 * use 'pluginname' lang pack identifier instead of 'blockname'
33 * move cron and version number into standard version.php
34 * removed support for old config_global.html, use settings.php