MDL-30610 remove outdated report upgrade code
This commit is contained in:
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_completion_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_completion stuff
|
||||
unset_all_config_for_plugin('coursereport_completion');
|
||||
capabilities_cleanup('coursereport_completion');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-completion-index', array('pagetypepattern'=>'course-report-completion-index'));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_log_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_log stuff
|
||||
unset_all_config_for_plugin('coursereport_log');
|
||||
capabilities_cleanup('coursereport_log');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-log-index', array('pagetypepattern'=>'course-report-log-index'));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_outline_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_outline stuff
|
||||
unset_all_config_for_plugin('coursereport_outline');
|
||||
capabilities_cleanup('coursereport_outline');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-outline-index', array('pagetypepattern'=>'course-report-outline-index'));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_participation_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_participation stuff
|
||||
unset_all_config_for_plugin('coursereport_participation');
|
||||
capabilities_cleanup('coursereport_participation');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-participation-index', array('pagetypepattern'=>'course-report-participation-index'));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_progress_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_progress stuff
|
||||
unset_all_config_for_plugin('coursereport_progress');
|
||||
capabilities_cleanup('coursereport_progress');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-progress-index', array('pagetypepattern'=>'course-report-progress-index'));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,5 @@ defined('MOODLE_INTERNAL') || die;
|
||||
function xmldb_report_stats_install() {
|
||||
global $DB;
|
||||
|
||||
// this is a hack which is needed for cleanup of original coursereport_stats stuff
|
||||
unset_all_config_for_plugin('coursereport_stats');
|
||||
capabilities_cleanup('coursereport_stats');
|
||||
|
||||
// update existing block page patterns
|
||||
$DB->set_field('block_instances', 'pagetypepattern', 'report-stats-index', array('pagetypepattern'=>'course-report-stats-index'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user