Search This Blog

Thursday 4 July 2013

Check Module existance in Magento

Following snippet can determine wether the module installed and it is active:

$modules = (array)Mage::getConfig()->getNode('modules')->children();
if (isset($modules['Company_Module']) && $modules['Company_Module']->is('active')) {
    // Do something
}

No comments:

Post a Comment