1 This files describes API changes in /calendar/* ,
2 information provided here is intended especially for developers.
5 * calendar_event_hook() has been removed. Developers should be using the Moodle events system to achieve this behaviour,
6 rather than using a hacky calendar specific implementation.
7 * calendar_wday_name() is deprecated and no longer used in core.
8 * calendar_get_block_upcoming() is deprecated, please use block_calendar_upcoming::get_upcoming_content() instead.
9 * calendar_print_month_selector() is deprecated and no longer used in core.
10 * calendar_cron() is deprecated and should not be used. Please use the core\task\calendar_cron_task instead.
13 * calendar_preferences_button() is now deprecated. Calendar preferences have been moved to the user preferences page.
16 default values changes in code:
17 * core_calendar_external::get_calendar_events_parameters() 'timeend' default option changed; now, by default,
18 all events are returned, not only the past ones.
19 * calendar types need to be updated to be compatible with standard PHP date/time code
22 required changes in code:
23 * calendar_add_icalendar_event() now requires a valid subscriptionid
24 * calendar_process_subscription_row() throws exception for invalid subscriptionid
25 * calendar_update_subscription_events() now throws a dml_exception instead of moodle_exception for bad subscriptions
26 * calendar_get_mini() function now has optional $placement and $courseid paramaters.
28 optional - no changes needed:
29 * calendar_update_subscription() should now be used to update Ical subscriptions.
33 required changes in code:
35 * calendar_get_popup() function now just returns id, instead of the string "id=$id"