From 5cca21a665fd06720d58febef31aedf0321aa779 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Tue, 1 Jun 2010 12:26:27 +0000 Subject: [PATCH] MDL-21695 Replaced grade/gradepass.html AMOS BEGIN HLP grade/gradepass.html,[gradepass_help,core_grades] AMOS END --- grade/edit/tree/category_form.php | 2 +- grade/edit/tree/item_form.php | 2 +- grade/edit/tree/outcomeitem_form.php | 4 ---- lang/en/grades.php | 1 - lang/en/help/grade/gradepass.html | 2 -- 5 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 lang/en/help/grade/gradepass.html diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index 3d746faaa6f..fa018bf978b 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -157,7 +157,7 @@ class edit_category_form extends moodleform { $mform->disabledIf('grade_item_grademin', 'aggregation', 'eq', GRADE_AGGREGATE_SUM); $mform->addElement('text', 'grade_item_gradepass', get_string('gradepass', 'grades')); - $mform->setHelpButton('grade_item_gradepass', array('gradepass', get_string('gradepass', 'grades'), 'grade'), true); + $mform->addHelpButton('grade_item_gradepass', 'gradepass', 'grades'); $mform->disabledIf('grade_item_gradepass', 'grade_item_gradetype', 'eq', GRADE_TYPE_NONE); $mform->disabledIf('grade_item_gradepass', 'grade_item_gradetype', 'eq', GRADE_TYPE_TEXT); diff --git a/grade/edit/tree/item_form.php b/grade/edit/tree/item_form.php index 63b47a8bfed..78c6acc57f4 100644 --- a/grade/edit/tree/item_form.php +++ b/grade/edit/tree/item_form.php @@ -84,7 +84,7 @@ class edit_item_form extends moodleform { $mform->disabledIf('grademin', 'gradetype', 'noteq', GRADE_TYPE_VALUE); $mform->addElement('text', 'gradepass', get_string('gradepass', 'grades')); - $mform->setHelpButton('gradepass', array('gradepass', get_string('gradepass', 'grades'), 'grade'), true); + $mform->addHelpButton('gradepass', 'gradepass', 'grades'); $mform->disabledIf('gradepass', 'gradetype', 'eq', GRADE_TYPE_NONE); $mform->disabledIf('gradepass', 'gradetype', 'eq', GRADE_TYPE_TEXT); diff --git a/grade/edit/tree/outcomeitem_form.php b/grade/edit/tree/outcomeitem_form.php index bf56023d9b7..f0628f02188 100644 --- a/grade/edit/tree/outcomeitem_form.php +++ b/grade/edit/tree/outcomeitem_form.php @@ -63,10 +63,6 @@ class edit_outcomeitem_form extends moodleform { $mform->setHelpButton('cmid', array('linkedactivity', get_string('linkedactivity', 'grades'), 'grade'), true); $mform->setDefault('cmid', 0); - /*$mform->addElement('text', 'gradepass', get_string('gradepass', 'grades')); - $mform->setHelpButton('gradepass', array(false, get_string('gradepass', 'grades'), - false, true, false, get_string('gradepasshelp', 'grades')));*/ - /// hiding /// advcheckbox is not compatible with disabledIf !! $mform->addElement('checkbox', 'hidden', get_string('hidden', 'grades')); diff --git a/lang/en/grades.php b/lang/en/grades.php index 7e8ff5a1806..19464483663 100755 --- a/lang/en/grades.php +++ b/lang/en/grades.php @@ -295,7 +295,6 @@ $string['gradeoutcomes'] = 'Outcomes'; $string['gradeoutcomescourses'] = 'Course outcomes'; $string['gradepass'] = 'Grade to pass'; $string['gradepass_help'] = 'This setting determines the minimum grade required to pass. The value is used in activity and course completion, and in the gradebook, where pass grades are highlighted in green and fail grades in red.'; -$string['gradepasshelp'] = 'If an item has a grade that users must equal or exceed to pass that item, you can set that here.'; $string['gradepreferences'] = 'Grade preferences'; $string['gradepreferenceshelp'] = 'Grade preferences Help'; $string['gradepublishing'] = 'Enable publishing'; diff --git a/lang/en/help/grade/gradepass.html b/lang/en/help/grade/gradepass.html deleted file mode 100644 index 4c7baa2de35..00000000000 --- a/lang/en/help/grade/gradepass.html +++ /dev/null @@ -1,2 +0,0 @@ -

Grade to pass

-

If an item has a grade that users must equal or exceed to pass that item, you can set that here.