MDL-58520 block_myoverview: change display name to Course overview
[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
a7fc1af1
DP
4=== 3.3 ===
5
6* block_manager::get_required_by_theme_block_types() is no longer static.
4671ae63
RW
7* The plugin block_course_overview has been removed from core and is being replaced by block_myoverview.
8 During the upgrade process the block_course_overview block will be uninstalled and all its settings will be deleted.
9 If you wish to keep the block_course_overview block and its settings, download it from moodle.org and put it back in
db3b7909 10 the blocks/ directory BEFORE UPGRADING.
a7fc1af1 11
6759dc35
SL
12=== 3.1 ===
13
14* The collapsed class was removed from the navigation block to make it compatible with aria.
15* New aria attributes were added on the navigation block [aria-expanded="false"].
16* The tree JS handling were moved from YUI to AMD module (Jquery).
17
2c2171bd
FM
18=== 2.9 ===
19
157e267f 20* The obsolete method preferred_width() was removed (it was not doing anything)
53c74b18 21* Deprecated block_base::config_save as is not called anywhere and should not be used.
ad5c3230
NL
22* Added instance_copy() function to the block_base class. This function allows for block
23 specific data to be copied when a block is copied.
2c2171bd 24
cbed1284
AN
25=== 2.8 ===
26
27* The instance_config_print() function was removed. It was deprecated in
28 Moodle 2.0, but without debugging notices. Since it was no longer a part
29 of the code path, debugging notices would not have been displayed.
30* Deprecated functions were removed from the block_base class:
31** _print_block()
32** _print_shadow()
33** _title_html()
34** _add_edit_controls()
35** config_print()
36
bde002b8
PS
37=== 2.6 ===
38
39* Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.
40
df7d171f
MN
41=== 2.4 ===
42
43Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
44a specific block to their My Home page. This capability was only defined for blocks where
45the applicable_formats function does not include "'my' => false" in the returned array,
46allowing it be added to the My Home page.
47
957fc845
DM
48=== 2.3 ===
49
50required changes in code:
51* block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
52 contains additional options for the file serving. The array should be re-passed
53 to send_stored_file().
ee362526 54
795a08ad 55=== 2.0 ===
56
57required changes in code:
58* use new DML syntax everywhere
59* use new DDL syntax in db/upgrade.php
60* replace defaults.php by settings.php and db/install.php
61* replace STATEMENTS section in db/install.xml by db/install.php
62* move post instalation code from install() method into db/install.php
63* completely rewrite file handling
64* rewrite backup/restore
78946b9b
PS
65* theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
66 move all images into new blocks/xxx/pix/ directory and use new outputlib api
cbcc9852 67 old global $THEME is fully replaced by $OUTPUT
19538d8c 68* remove '_utf8' from language pack names, use new {$a} syntax in language packs
ee362526 69* use 'pluginname' lang pack identifier instead of 'blockname'
8571833f 70* move cron and version number into standard version.php
dbf9e4ba 71* removed support for old config_global.html, use settings.php
795a08ad 72