MDL-71161 mod_glossary: show glossary activity info
This commit is contained in:
committed by
Jun Pataleta
parent
35bd229134
commit
abcbc5eb0c
@@ -46,6 +46,7 @@ if (!empty($id)) {
|
||||
} else {
|
||||
print_error('invalidid', 'glossary');
|
||||
}
|
||||
$cm = cm_info::create($cm);
|
||||
|
||||
require_course_login($course->id, true, $cm);
|
||||
$context = context_module::instance($cm->id);
|
||||
@@ -298,6 +299,11 @@ if ($tab == GLOSSARY_APPROVAL_VIEW) {
|
||||
}
|
||||
echo $OUTPUT->heading(format_string($glossary->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);
|
||||
|
||||
/// All this depends if whe have $showcommonelements
|
||||
if ($showcommonelements) {
|
||||
/// To calculate available options
|
||||
|
||||
Reference in New Issue
Block a user