. /** * Post installation and migration code. * * @package report * @subpackage outline * @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_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')); }