MadFrenchie Posted December 17, 2014 Share Posted December 17, 2014 (edited) [sOLVED] Heya folks,I'm stuck in my code trying to figure out how to check whether my module is enabled or not?when it gets uninstalled, the 'active' field in 'Prefix_module' turns to 0 which makes sense, however nothing happens when I simply "disable" it.Is there another table which is in charge of this task?Any help in these regards would be grandly appreciated.Best regards,MF Edited December 17, 2014 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted December 17, 2014 Share Posted December 17, 2014 I use the following: if (!Module::isEnabled('modulename') but I've noticed also some are incorporating ::isInstalled as well...maybe change in ps Link to comment Share on other sites More sharing options...
MadFrenchie Posted December 17, 2014 Author Share Posted December 17, 2014 I figured it out, Mea Culpa.Here is the code, perhaps it might help: if (Module::isEnabled('ModuleName')) @El Patron, Ow. Just in time bro' XDThanks anyways.Best Regards,MF 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