Merge branch 'MDL-59927-33-enfix' of git://github.com/mudrd8mz/moodle into MOODLE_33_...
[moodle.git] / mod / data / upgrade.txt
blob7ee17a884e8e24fbe8cdf0cf6970854e90896dda
1 This files describes API changes in /mod/data - plugins,
2 information provided here is intended especially for developers.
4 === 3.3.2 ===
5 * data_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
6   now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
7   objects instead of the ids to save DB calls.
9 === 3.3 ===
11 * External function get_databases_by_courses now return more fields for users with mod/data:viewentry capability enabled:
12     maxentries, rssarticles, singletemplate, listtemplate, listtemplateheader, listtemplatefooter, addtemplate,
13     rsstemplate, rsstitletemplate, csstemplate, jstemplate, asearchtemplate, approval, defaultsort, defaultsortdir, manageapproved.
14 * Data field classes extending data_field_base should implement the get_config_for_external method.
15     This method is used for returning the field settings for external functions.
16     You should check the user capabilities of the current user before returning any field setting value.
17     This is intended to protect field settings like private keys for external systems.
18 * Required entries has been added to the Activity completion setting of mod_form. Entries required for completion
19     (in the entries section) is no longer displayed for new instances and will be deprecated in a future release
20     in favour of the new completion setting.
22 === 3.2 ===
24 * New hook - update_content_import - Can be implemented by field subplugins data_field_* class
25     This can be used to pre-process data from a csv file before it is inserted into the database.