From 66eccc42001bcfb96b20426f5cf6643f6329d1d0 Mon Sep 17 00:00:00 2001 From: Oscar Nadjar Date: Thu, 9 Jan 2025 14:06:58 -0500 Subject: [PATCH] ARLO-55: Adding setting default on install --- db/install.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/install.php b/db/install.php index 5df8bafefec..6f1375be3e5 100644 --- a/db/install.php +++ b/db/install.php @@ -36,6 +36,9 @@ function xmldb_enrol_arlo_install() { $enabled[] = 'arlo'; } set_config('enrol_plugins_enabled', implode(',', $enabled)); + //Adding this as a default setting. + set_config('onlyactive', 1, plugin: 'enrol_arlo'); + set_config('enable_multisync', 1, 'enrol_arlo'); core_plugin_manager::reset_caches(); context_system::instance()->mark_dirty(); // Resets all enrol caches. return true;