function qformat_hotpot::hotpot_get_instructions in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/question/format/hotpot/format.php \qformat_hotpot::hotpot_get_instructions()
2 calls to qformat_hotpot::hotpot_get_instructions()
- qformat_hotpot::process_jmatch in includes/
moodle/ question/ format/ hotpot/ format.php - qformat_hotpot::process_jmix in includes/
moodle/ question/ format/ hotpot/ format.php
File
- includes/
moodle/ question/ format/ hotpot/ format.php, line 504
Class
- qformat_hotpot
- @package questionbank @subpackage importexport
Code
function hotpot_get_instructions(&$xml) {
$text = $xml
->xml_value('hotpot-config-file,instructions');
if (empty($text)) {
$text = "Hot Potatoes {$xml->quiztype}";
}
return $this
->hotpot_prepare_str($text);
}