-
New Feature
-
Resolution: Duplicate
-
Minor
-
None
-
2.5.1, 2.6.5, 2.7.1
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
In Moodle courses, teachers are allowed to customize role names within the course context. This might be a great feature for some Moodle installations, but we would like to have an ability to disable it.
The reason for disabling this features are:
1. We want to lighten up the course settings page and don't want teachers let teachers see options they don't need.
2. We are using block_people (contributed plugin) which displays role names and their users on course pages and we simply want to have consistent role names in all courses in this block.
From my point of view, it is basically sufficient to disable the edit boxes in the course settings page.
We have done this with this core hack:
diff --git a/course/edit_form.php b/course/edit_form.php
|
index c845331..df71e66 100644
|
--- a/course/edit_form.php
|
+++ b/course/edit_form.php
|
@@ -269,6 +269,8 @@ class course_edit_form extends moodleform {
|
|
//--------------------------------------------------------------------------------
|
|
+/* MODIFICATION START
|
+ REASON: We don't want customized role names
|
/// customizable role names in this course
|
//--------------------------------------------------------------------------------
|
$mform->addElement('header','rolerenaming', get_string('rolerenaming'));
|
@@ -284,6 +286,7 @@ class course_edit_form extends moodleform {
|
}
|
|
//--------------------------------------------------------------------------------
|
+ MODIFICATION END */
|
$this->add_action_buttons();
|
//--------------------------------------------------------------------------------
|
$mform->addElement('hidden', 'id', null);
|
But I think it would be useful to have a Moodle core option (on the advanced features settings page?) to disable customized role names correctly.
Thanks,
Alex