MCB enable/disable core modules

The development of MCB Small Business led me to the need to enable and disable MCB core modules, so I write some code to solve the problem.

Code

How it works:

MCB takes information about the core modules from the mcb_modules table and then adjusts the top menu.
I modified the table adding a field (module_change_status) to prevent to disable very important modules like “settings”.

You can download the sql of my mcb_modules table here.

Deploy:

I don’t have enough time to produce a proper patch and to test it on the MCB production branch but you can find the modified code here:

https://github.com/damko/MyClientBase-SB/tree/master/application/modules_core/mcb_menu

https://github.com/damko/MyClientBase-SB/tree/master/application/modules_core/mcb_modules

If Jesse thinks to implement the code in the standard MCB I’ll provide a pull request or a patch asap.

Final result

What’s next

I want to hide the settings tabs for the disabled modules

With this commit https://github.com/damko/MyClientBase-SB/commit/d4c95fa354e2827238a3fc9984b05d5a410c78d6 I also fixed the issue with settings tabs. Now disabled modules are not shown in the settings panel

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>