I already know how to disable module output in the system config by going to System>Configuration>Advanced and by setting <active>false</active>
in etc/modules. What I want to know is how to disable module using the custom tab that I created using system.xml.
3
Answers
You can add that New Enable/Disable field in system.xml , and before your module any code execute check this field value if that is enable then execute otherwise not,this way it can be possible.
you have to use ifconfig in your xml file
for example you make a field in your system.xml
And in your xml file
using if config if your module is enable then it will display otherwise it will not display..!
Add this code to your
system.xml
And check this in your code: before your first Action in the module.(this might be in your
cron.php or observer.php or indexcontroller
)