Merge branch 'wip_MDL-49327_2.7_guide_getinstance' of https://github.com/nixorv/moodl...
[moodle.git] / filter / upgrade.txt
blobd7bfb3d845010f45a6d2d7ea4bb2031526d1da76
1 This file describes API changes in core filter API and plugins,
2 information provided here is intended especially for developers.
4 === 2.7 ===
6 * Finally filter may use $PAGE and $OUTPUT, yay!
7 * Old global text caching was removed, each filter is now responsible
8   for own caching.
10 === 2.6 ===
12 * filtersettings.php is now deprecated, migrate to standard settings.php
14 === 2.5 ===
16 * legacy_filter emulation was removed
17 * support for 'mod/*' filters was removed
18 * use short filter name instead of old path, ex.: 'filter/tex' ---> 'tex'
19   in all filter API functions and methods
21 === 2.3 ===
23 * new setup() method added to moodle_text_filter, invoked before
24   filtering happens, used to add all the requirements to the page
25   (js, css...) and/or other init tasks. See filter/glossary for
26   an example using the API (and MDL-32279 for its justification).
28 === 2.2 ===
30 * legacy filters and legacy locations have been deprecated, so any
31   old filter should be updated to use the new moodle_text_filter,
32   and any filter bundled under mod/xxxx directories be moved to
33   /filter/xxxx (MDL-29995). They will stop working completely in
34   Moodle 2.3 (MDL-29996). See the glossary or data filters for
35   examples of legacy module filters and locations already updated.