mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-31133 calendar: Deleting the deprecated function calendar_get_events()
This commit is contained in:
parent
f468956988
commit
064f0c8ac3
@ -620,23 +620,6 @@ function calendar_add_event_metadata($event) {
|
||||
return $event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints a calendar event
|
||||
*
|
||||
* @deprecated Moodle 2.0 - MDL-22887 please do not use this function any more.
|
||||
* @todo MDL-31133 - will be removed in Moodle 2.3
|
||||
* @see core_calendar_renderer event function
|
||||
*/
|
||||
function calendar_print_event($event, $showactions=true) {
|
||||
global $CFG, $USER, $OUTPUT, $PAGE;
|
||||
debugging('calendar_print_event is deprecated please update your code', DEBUG_DEVELOPER);
|
||||
$renderer = $PAGE->get_renderer('core_calendar');
|
||||
if (!($event instanceof calendar_event)) {
|
||||
$event = new calendar_event($event);
|
||||
}
|
||||
echo $renderer->event($event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get calendar events
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user