MDL-59649 mod_data: Fix content exporter
[moodle.git] / blocks / upgrade.txt
blob6b8fc564aea89a431562900fea2e440b88f1590e
1 This files describes API changes in /blocks/* - activity modules,
2 information provided here is intended especially for developers.
4 === 3.4 ===
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 * Blocks can now be included in Moodle global search, with some limitations (at present, the search
10   works only for blocks located directly on course pages or site home page). See the HTML block for
11   an example.
13 === 3.3 ===
15 * block_manager::get_required_by_theme_block_types() is no longer static.
16 * The plugin block_course_overview has been removed from core and is being replaced by block_myoverview.
17   During the upgrade process the block_course_overview block will be uninstalled and all its settings will be deleted.
18   If you wish to keep the block_course_overview block and its settings, download it from moodle.org and put it back in
19   the blocks/ directory BEFORE UPGRADING.
21 === 3.1 ===
23 * The collapsed class was removed from the navigation block to make it compatible with aria.
24 * New aria attributes were added on the navigation block [aria-expanded="false"].
25 * The tree JS handling were moved from YUI to AMD module (Jquery).
27 === 2.9 ===
29 * The obsolete method preferred_width() was removed (it was not doing anything)
30 * Deprecated block_base::config_save as is not called anywhere and should not be used.
31 * Added instance_copy() function to the block_base class. This function allows for block
32   specific data to be copied when a block is copied.
34 === 2.8 ===
36 * The instance_config_print() function was removed. It was deprecated in
37   Moodle 2.0, but without debugging notices. Since it was no longer a part
38   of the code path, debugging notices would not have been displayed.
39 * Deprecated functions were removed from the block_base class:
40 ** _print_block()
41 ** _print_shadow()
42 ** _title_html()
43 ** _add_edit_controls()
44 ** config_print()
46 === 2.6 ===
48 * Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.
50 === 2.4 ===
52 Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
53 a specific block to their My Home page. This capability was only defined for blocks where
54 the applicable_formats function does not include "'my' => false" in the returned array,
55 allowing it be added to the My Home page.
57 === 2.3 ===
59 required changes in code:
60 * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
61   contains additional options for the file serving. The array should be re-passed
62   to send_stored_file().
64 === 2.0 ===
66 required changes in code:
67 * use new DML syntax everywhere
68 * use new DDL syntax in db/upgrade.php
69 * replace defaults.php by settings.php and db/install.php
70 * replace STATEMENTS section in db/install.xml by db/install.php
71 * move post instalation code from install() method into db/install.php
72 * completely rewrite file handling
73 * rewrite backup/restore
74 * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
75                  move all images into new blocks/xxx/pix/ directory and use new outputlib api
76                  old global $THEME is fully replaced by $OUTPUT
77 * remove '_utf8' from language pack names, use new {$a} syntax in language packs
78 * use 'pluginname' lang pack identifier instead of 'blockname'
79 * move cron and version number into standard version.php
80 * removed support for old config_global.html, use settings.php