Core/ExtensionChecker.php
public function isActive()
    {
        $moduleId = $this->getExtensionId();
        $moduleIsActive = false;

        $modules = $this->getExtendedClasses();

        if (is_array($modules)) {
            // Check if module was ever installed.
            $moduleExists = false;
            foreach ($modules as $extendPath) {
                if (false !== strpos($extendPath, '/' . $moduleId . '/')) {
                    $moduleExists = true;
                    break;
                }
            }

            // If module exists, check if it is not disabled.
            if ($moduleExists) {
                $disabledModules = $this->getDisabledModules();
                if (!(is_array($disabledModules) && in_array($moduleId, $disabledModules))) {
                    $moduleIsActive = true;
                }
            }
        }

        return $moduleIsActive;
    }
public function isActive()
    {
        $moduleId = $this->getExtensionId();
        $moduleIsActive = false;

        $modules = $this->getExtendedClasses();

        if (is_array($modules)) {
            // Check if module was ever installed.
            $moduleExists = false;
            foreach ($modules as $extendPath) {
                if (false !== strpos($extendPath, '/' . $moduleId . '/')) {
                    $moduleExists = true;
                    break;
                }
            }

            // If module exists, check if it is not disabled.
            if ($moduleExists) {
                $disabledModules = $this->getDisabledModules();
                if (!(is_array($disabledModules) && in_array($moduleId, $disabledModules))) {
                    $moduleIsActive = true;
                }
            }
        }

        return $moduleIsActive;
    }
public function isActive ( ) { $ moduleId = $ this -> getExtensionId ( ) ; $ moduleIsActive = false ; $ modules = $ this -> getExtendedClasses ( ) ; if ( is_array ( $ modules ) ) { // Check if module was ever installed. $ moduleExists = false ; foreach ( $ modules as $ extendPath ) { if ( false !== strpos ( $ extendPath , '/' . $ moduleId . '/' ) ) { $ moduleExists = true ; break ; } } // If module exists, check if it is not disabled. if ( $ moduleExists ) { $ disabledModules = $ this -> getDisabledModules ( ) ; if ( ! ( is_array ( $ disabledModules ) && in_array ( $ moduleId , $ disabledModules ) ) ) { $ moduleIsActive = true ; } } } return $ moduleIsActive ; }
Check if module is active.

@return  bool
Check if module is active .