dotnetic Posted July 26, 2017 Share Posted July 26, 2017 I want to trigger an action when I save my custom module configuration. Right now, I got the following code which is not working: public function ready() { $this->addHookAfter('Modules::saveConfig', $this, 'afterSave'); } public function afterSave() { $this->message("saved module config"); // Also I need the saved module settings here } I also need the values of the module configuration after saving, so I can trigger an action. Any ideas? Link to comment Share on other sites More sharing options...
Sergio Posted July 26, 2017 Share Posted July 26, 2017 Did you set autoload to true? I was getting the same problem with a module and I read somewhere that it will only invoke the ready method if autoload's true. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now