MDL-79313 calendar: Deprecate calendar_top_controls()

This commit is contained in:
Jun Pataleta 2023-09-11 14:41:21 +08:00
parent 48ddffbe88
commit 89ed58fe74
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 5 additions and 1 deletions

View File

@ -1672,11 +1672,14 @@ function calendar_get_events_by_id($eventids) {
/**
* Get control options for calendar.
*
* @deprecated since Moodle 4.3
* @param string $type of calendar
* @param array $data calendar information
* @return string $content return available control for the calender in html
* @return string $content return available control for the calendar in html
*/
function calendar_top_controls($type, $data) {
debugging(__FUNCTION__ . ' has been deprecated and should not be used anymore.', DEBUG_DEVELOPER);
global $PAGE, $OUTPUT;
// Get the calendar type we are using.

View File

@ -4,6 +4,7 @@ information provided here is intended especially for developers.
=== 4.3 ===
* The `navigation` property has been removed from `\core_calendar\external\day_exporter` as it is not being used by any of the
calendar templates.
* calendar_top_controls() has been deprecated and should no longer be used.
=== 4.1 ===
* New method `calendar_format_event_location` which will format the location property of an event, converting any