MDL-73633 navigation: Force 'Overrides' into the more menu by default

Forces the 'Overrides' item to be always displayed within the 'more'
menu in the secondary navigation in the module context.
This commit is contained in:
Mihail Geshoski
2022-02-01 23:42:04 +08:00
parent 4f9a539600
commit 1c8cf75c47
+2 -1
View File
@@ -154,7 +154,8 @@ class secondary extends view {
*/
protected function get_default_module_more_menu_nodes(): array {
return ['roleoverride', 'rolecheck', 'logreport', 'roleassign', 'filtermanage', 'backup', 'restore',
'competencybreakdown'];
'competencybreakdown', "mod_{$this->page->activityname}_useroverrides",
"mod_{$this->page->activityname}_groupoverrides"];
}
/**