Skip to content

Commit

Permalink
MDL-31133 calendar: Deleting the deprecated function calendar_get_eve…
Browse files Browse the repository at this point in the history
…nts()
  • Loading branch information
ankitagarwal committed May 9, 2012
1 parent f468956 commit 064f0c8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 064f0c8

Please sign in to comment.