Jump to content

How to hook a module after saving?


dotnetic
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...