Skip to content

Commit

Permalink
ARLO-55: Adding setting default on install
Browse files Browse the repository at this point in the history
  • Loading branch information
ojnadjarm committed Jan 9, 2025
1 parent 99585c7 commit 66eccc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66eccc4

Please sign in to comment.