Merge branch 'wip-mdl-50675-m28' of https://github.com/rajeshtaneja/moodle into MOODL...
[moodle.git] / blocks / upgrade.txt
blobabd99d2af9a03d4f0ddf06b938773e36b287f4ad
1 This files describes API changes in /blocks/* - activity modules,
2 information provided here is intended especially for developers.
4 === 2.8 ===
6 * The instance_config_print() function was removed. It was deprecated in
7   Moodle 2.0, but without debugging notices. Since it was no longer a part
8   of the code path, debugging notices would not have been displayed.
9 * Deprecated functions were removed from the block_base class:
10 ** _print_block()
11 ** _print_shadow()
12 ** _title_html()
13 ** _add_edit_controls()
14 ** config_print()
16 === 2.6 ===
18 * Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.
20 === 2.4 ===
22 Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
23 a specific block to their My Home page. This capability was only defined for blocks where
24 the applicable_formats function does not include "'my' => false" in the returned array,
25 allowing it be added to the My Home page.
27 === 2.3 ===
29 required changes in code:
30 * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
31   contains additional options for the file serving. The array should be re-passed
32   to send_stored_file().
34 === 2.0 ===
36 required changes in code:
37 * use new DML syntax everywhere
38 * use new DDL syntax in db/upgrade.php
39 * replace defaults.php by settings.php and db/install.php
40 * replace STATEMENTS section in db/install.xml by db/install.php
41 * move post instalation code from install() method into db/install.php
42 * completely rewrite file handling
43 * rewrite backup/restore
44 * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
45                  move all images into new blocks/xxx/pix/ directory and use new outputlib api
46                  old global $THEME is fully replaced by $OUTPUT
47 * remove '_utf8' from language pack names, use new {$a} syntax in language packs
48 * use 'pluginname' lang pack identifier instead of 'blockname'
49 * move cron and version number into standard version.php
50 * removed support for old config_global.html, use settings.php