mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Allow portfolio plugins to register event handlers - MDL-16392
This commit is contained in:
parent
527af45775
commit
2a389207d1
@ -49,7 +49,8 @@ function events_load_def($component) {
|
||||
|
||||
} else if ($compparts[0] == 'gradereport') {
|
||||
$defpath = $CFG->dirroot.'/grade/report/'.$compparts[1].'/db/events.php';
|
||||
|
||||
} else if ($compparts[0] == 'portfolio'){
|
||||
$defpath = $CFG->dirroot.'/portfolio/type/'.$compparts[1].'/db/events.php';
|
||||
} else {
|
||||
$defpath = $CFG->dirroot.'/'.$component.'/db/events.php';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user