MDL-51803 core: sortable list singleton
[moodle.git] / mod / choice / upgrade.txt
blob9a87617a7de6d5844213d85d80333359d48600a9
1 This files describes API changes in /mod/choice/*,
2 information provided here is intended especially for developers.
4 === 3.3.2 ===
6 * choice_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
7   now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
8   objects instead of the ids to save DB calls.
10 === 3.2 ===
12 * Events mod_choice\event\answer_submitted and mod_choice\event\answer_updated
13   are no longer triggered. Observers listening to these events must instead listen
14   to mod_choice\event\answer_created and mod_choice\event\answer_deleted that are
15   triggered for each option that is selected or unselected. User whose choice was
16   modified can be found in $event->relateduserid (this does not have to be the
17   user who performs the action).
19 === 3.0 ===
21 * External function mod_choice_external::get_choices_by_courses returned parameter "name" and
22   mod_choice_external::get_choice_results "text" have been changed to PARAM_RAW.
23   This is because the new external_format_string function may return raw data if the global moodlewssettingraw parameter is used.
25 === 2.9 ===
27 * custom renderers must be updated to include action=makechoice field in display_options()