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
}
$modules = (array)Mage::getConfig()->getNode('modules')->children();
if (isset($modules['Company_Module']) && $modules['Company_Module']->is('active')) {
// Do something
}
No comments:
Post a Comment