General developer forum

Need Advice on Enrol Plugin to Activate Sitewide

 
Picture of Chris Kenniburg
Need Advice on Enrol Plugin to Activate Sitewide
Particularly helpful MoodlersPlugin developers

Hello All,

What is best practice for this scenario:  We have an enrollment plugin (Easy Enroll) and we have a script to activate it sitewide on every course.  The activate.php script puts this enrollment method into every course. 

Do we trigger the script on activation of the plugin sitewide?  Do we put a button in SiteAdmin settings that would allow choice in triggering sitewide? Can we do both in case courses remove the enrollment method?

This plugin is unique in that there is an enrollment form presented on the Moodle homepage (with Fordson theme) which relies on the plugin being active in every course.  For new sites this can be activated when the course is created, but on existing sites with lots of courses you would need to add the Easy Enrollment method to each and every course.  

Please advise on how to proceed.


Many thanks,

Chris

 
Average of ratings: -