Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
307 views
in Q2A Core by
What is that for?

        function calc_quality($content, $format)
        {
            if ($format=='html')
                return 1.0;
            elseif ($format=='')
                return 0.8;
            else
                return 0;
        }
Q2A version: 1.6.2

1 Answer

0 votes
by

Found it at http://www.question2answer.org/modules.php?module=viewer

calc_quality($content, $format) should return a numerical value indicating your viewer's ability to render the supplied $content in $format, as retrieved from Q2A's database. You should return 1.0 to indicate perfect ability, and 0.0 for complete inability. For each piece of content, the viewer module returning the highest value will be used.

...