mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 15:51:56 +02:00
Allow portfolio plugins to register event handlers - MDL-16392
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user