MDL-67262 core_course: Added the ability to recommend activities.

This allows an adminsitrator or a user with
'moodle/course:recommendactivity' to recommend activities in the
activity chooser.
This commit is contained in:
Adrian Greeve
2020-02-24 10:59:55 +08:00
committed by Jake Dallimore
parent 37b2ee3f64
commit cd09777dbd
19 changed files with 482 additions and 16 deletions
+6
View File
@@ -61,6 +61,12 @@ if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) {
array('moodle/restore:restorecourse')
)
);
$ADMIN->add('courses',
new admin_externalpage('activitychooser', new lang_string('activitychooser', 'course'),
new moodle_url('/course/recommendations.php'),
array('moodle/course:recommendactivity')
)
);
// Course Default Settings Page.
// NOTE: these settings must be applied after all other settings because they depend on them.