upgrade.txt 2.09 KB
Newer Older
1
2
3
This files describes API changes in /blocks/* - activity modules,
information provided here is intended especially for developers.

4
5
6
7
=== 2.9 ===

* The obsolete method preferred_width() was removed.

8
9
10
11
12
13
14
15
16
17
18
19
=== 2.8 ===

* The instance_config_print() function was removed. It was deprecated in
  Moodle 2.0, but without debugging notices. Since it was no longer a part
  of the code path, debugging notices would not have been displayed.
* Deprecated functions were removed from the block_base class:
** _print_block()
** _print_shadow()
** _title_html()
** _add_edit_controls()
** config_print()

20
21
22
23
=== 2.6 ===

* Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.

24
25
26
27
28
29
30
=== 2.4 ===

Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
a specific block to their My Home page. This capability was only defined for blocks where
the applicable_formats function does not include "'my' => false" in the returned array,
allowing it be added to the My Home page.

31
32
33
34
35
36
=== 2.3 ===

required changes in code:
* block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
  contains additional options for the file serving. The array should be re-passed
  to send_stored_file().
37

38
39
40
41
42
43
44
45
46
47
=== 2.0 ===

required changes in code:
* use new DML syntax everywhere
* use new DDL syntax in db/upgrade.php
* replace defaults.php by settings.php and db/install.php
* replace STATEMENTS section in db/install.xml by db/install.php
* move post instalation code from install() method into db/install.php
* completely rewrite file handling
* rewrite backup/restore
48
49
* theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
                 move all images into new blocks/xxx/pix/ directory and use new outputlib api
50
                 old global $THEME is fully replaced by $OUTPUT
Petr Skoda's avatar
Petr Skoda committed
51
* remove '_utf8' from language pack names, use new {$a} syntax in language packs
52
* use 'pluginname' lang pack identifier instead of 'blockname'
53
* move cron and version number into standard version.php
54
* removed support for old config_global.html, use settings.php
55