diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index 07387256d3a..27234fa5a17 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -453,7 +453,7 @@ abstract class moodleform_mod extends moodleform { $this->repeat_elements(array($group), $count, array(), 'conditiongraderepeats', 'conditiongradeadds', 2, get_string('addgrades', 'condition'), true); - $mform->setHelpButton('conditiongradegroup[0]', array('gradecondition', get_string('help_gradecondition', 'condition'), 'condition')); + $mform->addHelpButton('conditiongradegroup[0]', 'gradecondition', 'condition'); // Conditions based on completion $completion = new completion_info($COURSE); diff --git a/lang/en/condition.php b/lang/en/condition.php index a9055528256..30daeeac6da 100644 --- a/lang/en/condition.php +++ b/lang/en/condition.php @@ -38,6 +38,25 @@ $string['configenableavailability'] = 'When enabled, this lets you set condition $string['enableavailability'] = 'Enable conditional availability'; $string['grade_atleast'] = 'must be at least'; $string['gradecondition'] = 'Grade condition'; +$string['gradecondition_help'] = 'You can specify a condition on any grade in the course: the full course grade, the grade for any activity, or a custom grade that you create manually. +You can enter either a minimum value (≥), a maximum value (<), both, or +neither. The activity will only appear if the student has a value for the +specified grade, and if it falls within any specified number range. +You can add more than one grade condition. All conditions must be met in order +for the activity to appear. +