pwFoo Posted February 10, 2015 Share Posted February 10, 2015 I try to build module plugins / children. Child modules should be load during parent / main module init. Load the modules is easy, but how could a attach a child module to the parent? 1) How to modify the parent module? 2) Because only installed plugins / children loaded during parent init, attach / detach during child un-/install should be fine. Search for a simple in module solution. No autoload needed. Parent module should load a saved list of children to work with. Link to comment Share on other sites More sharing options...
pwFoo Posted February 10, 2015 Author Share Posted February 10, 2015 Ok... after a little more searching that should be the solution... https://processwire.com/talk/topic/648-storing-module-config-using-api/?p=5241 Link to comment Share on other sites More sharing options...
pwFoo Posted February 10, 2015 Author Share Posted February 10, 2015 Attach / detach plugins to a parent module works fine, but parent module uninstall will blocked by the plugins (because "requires parent module"). Is there a way to uninstall all plugins during parent uninstall instead of block the uninstall process? Attached plugin modulesFrontendUserRegisterPluginHoneypot Uninstall (Disabled) Can't uninstall module - Module is required by other modules that must be removed first Uninstall (Disabled)You must first uninstall other modules - FrontendUserRegisterPluginHoneypot 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