mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-20192 Allocation and grading methods are proper subplugins now.
Still, some areas to be finished - strings and settings
This commit is contained in:
parent
bdb78faa21
commit
f9cb8ea72f
10 changed files with 248 additions and 75 deletions
|
@ -243,11 +243,15 @@ function workshop_uninstall() {
|
|||
*/
|
||||
function workshop_supports($feature) {
|
||||
switch($feature) {
|
||||
case FEATURE_GRADE_HAS_GRADE: return true;
|
||||
case FEATURE_GROUPS: return true;
|
||||
case FEATURE_GROUPINGS: return true;
|
||||
case FEATURE_GROUPMEMBERSONLY: return true;
|
||||
case FEATURE_MOD_INTRO: return true;
|
||||
case FEATURE_GRADE_HAS_GRADE: return true;
|
||||
case FEATURE_MOD_SUBPLUGINS: return array(
|
||||
'workshopgrading' => 'mod/workshop/grading',
|
||||
'workshopallocation' => 'mod/workshop/allocation'
|
||||
);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue