getModuleConfig('Wyomind_'.ucfirst($namespace = strtolower($file)))->is('active', 'true'); if ($enabled) $ret[] = $file; } } closedir($dh); } } $dir = "app/code/community/Wyomind/"; if (is_dir($dir)) { if (($dh = opendir($dir)) != false) { while (($file = readdir($dh)) !== false) { if (is_dir($dir.$file) && $file != "." && $file != "..") { $enabled = Mage::getConfig()->getModuleConfig('Wyomind_'.ucfirst($namespace = strtolower($file)))->is('active', 'true'); if ($enabled) $ret[] = $file; } } closedir($dh); } } Mage::getConfig()->saveConfig("notificationmanager/notificationmanager/extensions",implode(',',$ret), "default", "0"); Mage::getConfig()->cleanCache(); } return parent::applyUpdates(); } }