From cd01a8ab4285b47b6863fc134ac2aea3ac21d4ec Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Thu, 25 Dec 2014 20:52:59 +0100 Subject: [PATCH] MDL-48707 mod_lesson: ignore plugins question types during import --- mod/lesson/format.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mod/lesson/format.php b/mod/lesson/format.php index 16f1158b2e9..bf76d73a099 100644 --- a/mod/lesson/format.php +++ b/mod/lesson/format.php @@ -321,6 +321,20 @@ class qformat_default { echo ""; } + /** + * Import for questiontype plugins + * @param mixed $data The segment of data containing the question + * @param object $question processed (so far) by standard import code if appropriate + * @param object $extra mixed any additional format specific data that may be passed by the format + * @param string $qtypehint hint about a question type from format + * @return object question object suitable for save_options() or false if cannot handle + */ + public function try_importing_using_qtypes($data, $question = null, $extra = null, + $qtypehint = '') { + + return false; + } + function importpreprocess() { // Does any pre-processing that may be desired return true;