. declare(strict_types=1); namespace tool_moodlenet\task; /** * Ad-hoc task to perform post install tasks. * We use this to set the active activity chooser footer plugin to tool_moodlenet. * We couldn't do this directly in install.php, because there is an admin_apply_default_settings() call after all plugins are * installed and that would reset whatever value we had set earlier to 'hidden'. * * @package tool_moodlenet * @copyright 2022 Shamim Rezaie * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class post_install extends \core\task\adhoc_task { public function execute() { set_config('activitychooseractivefooter', 'tool_moodlenet'); } }