MDL-63086 block_rss_client: Move skip time calculation to task
[moodle.git] / mod / lesson / upgrade.txt
blob5ba485e23c640821954fefbe30e81b43f44f8794
1 This files describes API changes in the lesson code.
3 === 3.4 ===
5 * External function mod_lesson_external::get_user_attempt() now returns the full page object inside each answerpages.
7 === 3.3.2 ===
9 * lesson_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
10   now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
11   objects instead of the ids to save DB calls.
13 === 3.3 ===
15 * lesson::callback_on_view() has an additional optional parameter $redirect default to true.
16   It can be set to false to avoid redirection and return the page to redirect.
17 === 3.1 ===
18 * Removed the unused file reformat.php
19 * removedoublecr() and importmodifiedaikenstyle() have now been removed.
21 === 3.0 ===
22 * Removed broken high score code.  Use the activity results block instead.
24 === 2.9 ===
25 * The  grade_item_delete function in mod/lesson/lib.php was removed because it was not doing anything and was never called.
26 * A third optional boolean parameter $endreached was added to lesson::update_timer to indicate that end of lesson was reached. This is used by 'completionendreached' custom completion rule.
27 * lesson_page_type_endofbranch::update in mod/lesson/pagetypes/endofbranch.php
28   and lesson_page_type_endofcluster::update in mod/lesson/pagetypes/endofcluster.php
29   have been removed, this is now handled by the base class: lesson_page::update in
30   locallib.php and the exact same code is executed (it is also executed by the
31   lesson_page_type_cluster class that previously had no update function).
32 * A fourth parameter (format) has been added to the add_answer() function
33   located as part of the lesson_add_page_form_base class. If specified with a value of 'LESSON_ANSWER_HTML'
34   then a rich html editor is generated. Otherwise an editor is created with Moodle Auto Format
35 * removedoublecr() and importmodifiedaikenstyle() are now deprecated.
36 * Added support for groups and groupings. If enabled, this allows the Report and
37   Grade Essay view to be filtered by a group
39 === Earlier changes ===
41 * Were not documented in this way. Sorry.