エクスポート・インポートする際、問題文と選択肢の間に、「"!".$generalfeedback."\n"」を追加する方法で実装成功しました。
良い方法があればご教授いただきたく。
question/format/gift/format.phpのreadquestion(360行目近辺)
case MATCH:
$answers = explode('=', $answertext);
if (isset($answers[0])) {
$answers[0] = trim($answers[0]);
}
if (empty($answers[0])) {
array_shift($answers);
}
//↓customize begin
if ($answers[0][0] == '!'){
$question->generalfeedback = substr($answers[0],1);
array_shift($answers);
}
//↑customize end
if (!$this->check_answer_count(2,$answers,$text)) {
return false;
break;
}
question/format/gift/format.phpのwritequestion(700行目近辺)
case MATCH:
$expout .= $this->write_name($question->name);
$expout .= $this->write_questiontext($question->questiontext, $question->questiontextformat);
$expout .= "{\n";
// ↓customize begin
$expout .="!".$question->generalfeedback . "\n";
// ↑customize end
foreach($question->options->subquestions as $subquestion) {
$expout .= "\t=" . $this->repchar($this->write_questiontext($subquestion->questiontext, $subquestion->questiontextformat, $question->questiontextformat)) .
' -> ' . $this->repchar($subquestion->answertext) . "\n";
}
$expout .= "}\n";
break;