Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting to enable/disable handling events with (disabled value by default) #31

Open
vtos opened this issue May 10, 2023 · 0 comments
Open

Comments

@vtos
Copy link

vtos commented May 10, 2023

When installing the plugin in the old-school way 🙂 , I mean, by placing the plugin in the local dir on the server first and then accessing the site, you start observing an error with accessing the plugin's database table. This is because the plugin isn't installed yet, the table isn't created as well, but the plugin has already started listening to Moodle's events, even without having been installed.

The solution would be to introduce a plugin's setting to enable/disable listening to events, and set it as 'disabled' by default. This would in general allow to control the plugin's listening to Moodle's events. Sometimes you may want to disable it even after installing the pluign for some reason.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant