code/libraries/joomlatools/component/koowa/template/filter/module.php
public static function &getModules($position)
    {
        if($position) {
            $modules =& JModuleHelper::getModules($position);
        } else {
            $modules =& JModuleHelper::_load();
        }

        return $modules;
    }
public static function &getModules($position)
    {
        if($position) {
            $modules =& JModuleHelper::getModules($position);
        } else {
            $modules =& JModuleHelper::_load();
        }

        return $modules;
    }
public static function & getModules ( $ position ) { if ( $ position ) { $ modules = & JModuleHelper :: getModules ( $ position ) ; } else { $ modules = & JModuleHelper :: _load ( ) ; } return $ modules ; }
Return modules, optionally filtered by position

@param  string|null $position Module position
@return array
Return modules optionally filtered by position