-
Improvement
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
MDL-30408-master -
-
(Change proposed for 2.3, please ignore until that starts.)
In several cases at the OU we have modules which you cannot create using the normal 'Add a resource/activity' dropdowns. This is because either:
a) the creation process is complicated and must be initiated within another system
or
b) the module is created by the system automatically independent of user
To support these I propose adding a fourth ARCHETYPE constant: MOD_ARCHETYPE_SYSTEM for modules which can only be added by the system and do not appear in the list.
There is a hack to do this in current (including 2.2) system but it is horrible and seems likely to die in future, now that assignment module has done. See workaround below.
In addition while implementing this feature I observed that the 'restrict modules' list uses the internal names for modules (e.g. 'forum') rather than the translated language strings. This seems bizarre, so I fixed it.