MDL-63738 question bank: a link to download a single question
[moodle.git] / question / preview.php
index 7e0a719..2f0908b 100644 (file)
@@ -274,6 +274,12 @@ foreach ($technical as $info) {
 }
 print_collapsible_region_end();
 
+// Output a link to export this single question.
+if (question_has_capability_on($question, 'view')) {
+    echo html_writer::link(question_get_export_single_question_url($question),
+            get_string('exportonequestion', 'question'));
+}
+
 // Display the settings form.
 $optionsform->display();