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