Jump to content

Recommended Posts

Posted

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?

Posted

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.

  • Like 1

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
  • Recently Browsing   0 members

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