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

Ability to hide core assignment types

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.13, 2.1.1
    • Fix Version/s: DEV backlog
    • Component/s: Assignment (2.2)
    • Labels:

      Description

      It is currently possible to hide custom assignment types using the configuration ($CFG->assignment_hide_someassignmenttype), but this doesn't work for core types. It would be useful to be able to hide core assignment types, particularly in the situation where an institution creates a custom version of a core type and would like to replace the original with it.

      I tried to check whether there was a reason for this on the forums (http://moodle.org/mod/forum/discuss.php?d=180996), but had no response, so I'm assuming it may not be deliberate..

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            salvetore Michael de Raadt added a comment -

            Thanks for suggesting this.

            If you can propose a code solution, that will increase the chance of this improvement/feature coming about sooner.

            Show
            salvetore Michael de Raadt added a comment - Thanks for suggesting this. If you can propose a code solution, that will increase the chance of this improvement/feature coming about sooner.
            Hide
            maherne Michael Aherne added a comment -

            Thanks Michael - I'm working on a pull request for it, which I should hopefully have up later today.

            Show
            maherne Michael Aherne added a comment - Thanks Michael - I'm working on a pull request for it, which I should hopefully have up later today.
            Hide
            maherne Michael Aherne added a comment -

            Pull request added.

            Show
            maherne Michael Aherne added a comment - Pull request added.
            Hide
            paul.n Paul Nicholls added a comment -

            It certainly makes sense to me - I'm working on customised versions of some core assignment types, so I'll be needing precisely this functionality. The patch looks good to me - should apply cleanly to all branches, or could be easily manually applied if not.

            While this is a nice quick fix (and matches how it's handled for custom assignment types), it'd be nice to eventually have a "proper" system for enabling/disabling assignment types through an admin page, along the lines of the show/hide column in the Manage Blocks page (/admin/blocks.php). The admin interface could perhaps toggle the $CFG variables, so there's no breakage of backwards compatibility.

            Show
            paul.n Paul Nicholls added a comment - It certainly makes sense to me - I'm working on customised versions of some core assignment types, so I'll be needing precisely this functionality. The patch looks good to me - should apply cleanly to all branches, or could be easily manually applied if not. While this is a nice quick fix (and matches how it's handled for custom assignment types), it'd be nice to eventually have a "proper" system for enabling/disabling assignment types through an admin page, along the lines of the show/hide column in the Manage Blocks page (/admin/blocks.php). The admin interface could perhaps toggle the $CFG variables, so there's no breakage of backwards compatibility.
            Hide
            maherne Michael Aherne added a comment -

            This is no longer an issue with the new mod_assign.

            Show
            maherne Michael Aherne added a comment - This is no longer an issue with the new mod_assign.

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: