From b4fcf278c2bdf7149713bb517a019ecc31ac8723 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luca=20B=C3=B6sch?= Date: Wed, 25 Oct 2017 17:21:10 +0100 Subject: [PATCH] MDL-54693 quiz: Info for attempts allowed in user and group override. --- mod/quiz/lang/en/quiz.php | 1 + mod/quiz/override_form.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/quiz/lang/en/quiz.php b/mod/quiz/lang/en/quiz.php index 9546ea088fe..5f0eb1edd57 100644 --- a/mod/quiz/lang/en/quiz.php +++ b/mod/quiz/lang/en/quiz.php @@ -95,6 +95,7 @@ $string['attemptlast'] = 'Last attempt'; $string['attemptnumber'] = 'Attempt'; $string['attemptquiznow'] = 'Attempt quiz now'; $string['attempts'] = 'Attempts'; +$string['attempts_help'] = 'The total number of attempts allowed (not the number of extra attempts).'; $string['attemptsallowed'] = 'Attempts allowed'; $string['attemptsdeleted'] = 'Quiz attempts deleted'; $string['attemptselection'] = 'Select which attempts to analyze per user:'; diff --git a/mod/quiz/override_form.php b/mod/quiz/override_form.php index d97eea29617..695f82c668f 100644 --- a/mod/quiz/override_form.php +++ b/mod/quiz/override_form.php @@ -200,6 +200,7 @@ class quiz_override_form extends moodleform { } $mform->addElement('select', 'attempts', get_string('attemptsallowed', 'quiz'), $attemptoptions); + $mform->addHelpButton('attempts', 'attempts', 'quiz'); $mform->setDefault('attempts', $this->quiz->attempts); // Submit buttons. -- 2.11.4.GIT