. /** * Course summary block installation. * * @package block_course_summary * @copyright 2021 Amaia Anabitarte * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Perform the post-install procedures. */ function xmldb_block_course_summary_install() { global $DB; // Disable course_summary on new installs by default. $DB->set_field('block', 'visible', 0, ['name' => 'course_summary']); }