MDL-78553 core_communication: Move settings to their own page

This commit is contained in:
David Woloszyn
2023-08-03 12:36:04 +10:00
parent 5aea409a87
commit 317251a978
21 changed files with 382 additions and 74 deletions
+8
View File
@@ -2976,6 +2976,14 @@ class global_navigation extends navigation_node {
}
}
// Add link for configuring communication.
if ($navoptions->communication) {
$url = new moodle_url('/communication/configure.php', ['instanceid' => $course->id,
'instancetype' => 'coursecommunication', 'component' => 'core_course']);
$coursenode->add(get_string('communication', 'communication'), $url,
navigation_node::TYPE_SETTING, null, 'communication');
}
return true;
}
/**