function grade_responses(&$question, &$state, $cmoptions) { wrsqz_swap('match', 'wmatprom', $question, $state); wrsqz_hideCASSession('match', 'wmatprom', $question, $state); if (wrsqz_grade_responses('match', 'wmatprom', $question, $state, $cmoptions)) { $toreturn = parent::grade_responses($question, $state, $cmoptions); } wrsqz_restoreCASSession('match', 'wmatprom', $question, $state); return $toreturn; }
function grade_responses(&$question, &$state, $cmoptions) { wrsqz_swap('multianswer', 'wmansprom', $question, $state); wrsqz_hideCASSession('multianswer', 'wmansprom', $question, $state); $toreturn = wrsqz_grade_responses('multianswer', 'wmansprom', $question, $state, $cmoptions); wrsqz_restoreCASSession('multianswer', 'wmansprom', $question, $state); return $toreturn; }