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