fix for MDL-9137, adding support for gradebook plugins for db, cron, events, permission structures etc

This commit is contained in:
toyomoyo
2007-05-24 02:16:31 +00:00
parent a15428a2f6
commit ce34ed3a76
7 changed files with 176 additions and 18 deletions
+10 -1
View File
@@ -2406,10 +2406,19 @@ function load_capability_def($component) {
's/'.$compparts[1].'/db/access.php';
$varprefix = $compparts[0].'_'.$compparts[1];
} else if ($compparts[0] == 'format') {
// Similar to the above, course formats are 'format' while they
// Similar to the above, course formats are 'format' while they
// are stored in 'course/format'.
$defpath = $CFG->dirroot.'/course/'.$component.'/db/access.php';
$varprefix = $compparts[0].'_'.$compparts[1];
} else if ($compparts[0] == 'gradeimport') {
$defpath = $CFG->dirroot.'/grade/import/'.$component.'/db/access.php';
$varprefix = $component;
} else if ($compparts[0] == 'gradeexport') {
$defpath = $CFG->dirroot.'/grade/export/'.$component.'/db/access.php';
$varprefix = $component;
} else if ($compparts[0] == 'gradereport') {
$defpath = $CFG->dirroot.'/grade/report/'.$component.'/db/access.php';
$varprefix = $component;
} else {
$defpath = $CFG->dirroot.'/'.$component.'/db/access.php';
$varprefix = str_replace('/', '_', $component);