. /** * Post installation and migration code. * * @package report * @subpackage progress * @copyright 2011 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ 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')); }