Skip to content

Commit

Permalink
hide disabled module
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Oct 24, 2024
1 parent 4fdf499 commit 714ba48
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = $this->_getHeaderHtml($element);

$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
$modules = (array)Mage::getConfig()->getNode('modules')->children();
/** @var Mage_Core_Model_Config_Element $module */
foreach ($modules as $index => $module) {
$module = $module->asArray();
if ($module['active'] === 'false') {
unset($modules[$index]);
}
}

$modules = array_keys($modules);

$dispatchResult = new Varien_Object($modules);
Mage::dispatchEvent(
Expand Down

0 comments on commit 714ba48

Please sign in to comment.