Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41442

Add a option to prevent customizable role names

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andrew_dc_hancox Andrew Hancox
                Reporter:
                abias Alexander Bias
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Barbara Ramiro, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: