From a45eca85bb73243fc0e5014f84abae662637029d Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 29 Mar 2021 10:37:01 +0800 Subject: [PATCH] MDL-71161 mod_data: show database activity info --- mod/data/view.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/data/view.php b/mod/data/view.php index 9bce3e74cce..1e6aa3fe0be 100644 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -80,7 +80,7 @@ } $record = NULL; } - + $cm = cm_info::create($cm); require_course_login($course, true, $cm); require_once($CFG->dirroot . '/comment/lib.php'); @@ -268,6 +268,11 @@ echo $OUTPUT->heading(format_string($data->name), 2); + // Render the activity information. + $completiondetails = \core_completion\cm_completion_details::get_instance($cm, $USER->id); + $activitydates = \core\activity_dates::get_dates_for_module($cm, $USER->id); + echo $OUTPUT->activity_information($cm, $completiondetails, $activitydates); + // Do we need to show a link to the RSS feed for the records? //this links has been Settings (database activity administration) block /*if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {