/** * Returns an array of paths to be searched for modules. This also determines where * modules are loaded from. */ public static function getModulePaths() { if (!self::$_modulePaths) { self::$_modulePaths = array(ROOT . 'modules/', ROOT . 'core/'); $sitePath = Site::getPath() . 'modules/'; if (file_exists($sitePath)) { array_unshift(self::$_modulePaths, $sitePath); } } return self::$_modulePaths; }