. /** * Code to be executed after the plugin's database scheme has been installed is defined here. * * @package mod_subsection * @category upgrade * @copyright 2023 Amaia Anabitarte * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Custom code to be run on installing the plugin. */ function xmldb_subsection_install() { global $DB; // Disable the chat activity module on new installs by default. $DB->set_field('modules', 'visible', 0, ['name' => 'subsection']); return true; }