General developer forum

making the filter "On" by default on installation

 
Tim at Lone Pine Koala Sanctuary
Re: making the filter "On" by default on installation
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

In your filter, add a file db/install.php (https://docs.moodle.org/dev/Plugin_files#db.2Finstall.php) the function in there gets run when your plugin is installed, and using that you can turn your filter on.

 
Average of ratings: -