Colin O'Dell Colin O'Dell - 1 year ago 111
PHP Question

Determine if Magento module is enabled

What is the best way to determine if a particular module is enabled/active in Magento? I've tried using

to check if my code has been loaded and parsed by PHP but lately I've noticed its pretty unreliable (returns
even when I delete the module's .xml configuration).

Is there a core function I can call?

Answer Source

If you would like to use a build in function just use

Mage::helper('core')->isModuleEnabled(<module name>);

It is implemented in

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download