Merge branch 'MDL-49604-master' of git://github.com/damyon/moodle
[moodle.git] / blocks / upgrade.txt
CommitLineData
795a08ad 1This files describes API changes in /blocks/* - activity modules,
2information provided here is intended especially for developers.
3
2c2171bd
FM
4=== 2.9 ===
5
157e267f 6* The obsolete method preferred_width() was removed (it was not doing anything)
53c74b18 7* Deprecated block_base::config_save as is not called anywhere and should not be used.
2c2171bd 8
cbed1284
AN
9=== 2.8 ===
10
11* The instance_config_print() function was removed. It was deprecated in
12 Moodle 2.0, but without debugging notices. Since it was no longer a part
13 of the code path, debugging notices would not have been displayed.
14* Deprecated functions were removed from the block_base class:
15** _print_block()
16** _print_shadow()
17** _title_html()
18** _add_edit_controls()
19** config_print()
20
bde002b8
PS
21=== 2.6 ===
22
23* Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.
24
df7d171f
MN
25=== 2.4 ===
26
27Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
28a specific block to their My Home page. This capability was only defined for blocks where
29the applicable_formats function does not include "'my' => false" in the returned array,
30allowing it be added to the My Home page.
31
957fc845
DM
32=== 2.3 ===
33
34required changes in code:
35* block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
36 contains additional options for the file serving. The array should be re-passed
37 to send_stored_file().
ee362526 38
795a08ad 39=== 2.0 ===
40
41required changes in code:
42* use new DML syntax everywhere
43* use new DDL syntax in db/upgrade.php
44* replace defaults.php by settings.php and db/install.php
45* replace STATEMENTS section in db/install.xml by db/install.php
46* move post instalation code from install() method into db/install.php
47* completely rewrite file handling
48* rewrite backup/restore
78946b9b
PS
49* theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
50 move all images into new blocks/xxx/pix/ directory and use new outputlib api
cbcc9852 51 old global $THEME is fully replaced by $OUTPUT
19538d8c 52* remove '_utf8' from language pack names, use new {$a} syntax in language packs
ee362526 53* use 'pluginname' lang pack identifier instead of 'blockname'
8571833f 54* move cron and version number into standard version.php
dbf9e4ba 55* removed support for old config_global.html, use settings.php
795a08ad 56