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:
committed by
Jake Dallimore
parent
37b2ee3f64
commit
cd09777dbd
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user