Merge branch 'MDL-81399' of https://github.com/paulholden/moodle
[moodle.git] / customfield / upgrade.txt
blob0336e14e7e18a903c27e442f834af9b772a49f25
1 This files describes API changes in /customfield/*,
2 Information provided here is intended especially for developers.
4 === 4.4 ===
5 * Enhance the handling of files embedded within textarea custom fields in the course backup and restore functionalities.
6   These files are now properly backed up when a course is backed up, and restored when the course is restored.
7   Other types of custom fields can also benefit from this new API. See MDL-79151 for more information.
8   `\core_customfield\handler::restore_instance_data_from_backup()` now conditionally returns a data_controller id and
9   there are two new methods, `\core_customfield\data_controller::backup_define_structure()` and
10   `\core_customfield\data_controller::restore_define_structure()`.
12 === 4.3 ===
13 * Field categories are now consistently of type `PARAM_TEXT`, ensure instance `get_formatted_name()` helper is used
14   during output
16 === 4.2 ===
17 * The `\customfield_select\field_controller::get_options_array` method, deprecated since 3.10, has been removed, use
18   the field instance `get_options` method instead
20 === 3.11 ===
21 * Methods \core_customfield\handler::get_field_config_form() and \core_customfield\handler::setup_edit_page() are no
22   longer used. Components that define custom fields areas do not need to implement them. Field edit form opens in
23   the modal now.