diff --git a/admin/settings/grades.php b/admin/settings/grades.php index d940b7b321b..8d93c3fede9 100644 --- a/admin/settings/grades.php +++ b/admin/settings/grades.php @@ -32,7 +32,7 @@ if (has_capability('moodle/grade:manage', $systemcontext) $temp->add(new admin_setting_grade_profilereport()); $temp->add(new admin_setting_configselect('grade_aggregationposition', get_string('aggregationposition', 'grades'), - get_string('configaggregationposition', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST, + get_string('aggregationposition_help', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST, array(GRADE_REPORT_AGGREGATION_POSITION_FIRST => get_string('positionfirst', 'grades'), GRADE_REPORT_AGGREGATION_POSITION_LAST => get_string('positionlast', 'grades')))); diff --git a/grade/edit/settings/form.php b/grade/edit/settings/form.php index e653755b0b1..9d5a48d12a4 100644 --- a/grade/edit/settings/form.php +++ b/grade/edit/settings/form.php @@ -56,7 +56,7 @@ class course_settings_form extends moodleform { } } $mform->addElement('select', 'aggregationposition', get_string('aggregationposition', 'grades'), $options); - $mform->setHelpButton('aggregationposition', array('aggregationposition', get_string('aggregationposition', 'grades'), 'grade')); + $mform->addHelpButton('aggregationposition', 'aggregationposition', 'grades'); // Grade item settings $mform->addElement('header', 'grade_item_settings', get_string('gradeitemsettings', 'grades')); diff --git a/lang/en/grades.php b/lang/en/grades.php index eb9e86fd700..129295abecc 100755 --- a/lang/en/grades.php +++ b/lang/en/grades.php @@ -117,7 +117,6 @@ $string['categorytotal'] = 'Category total'; $string['categorytotalfull'] = '{$a->category} total'; $string['combo'] = 'Tabs and Dropdown menu'; $string['compact'] = 'Compact'; -$string['configaggregationposition'] = 'Defines the position of the aggregation total column in the report related to the grades being aggregated.'; $string['configaggregationview'] = 'Each category can be displayed in three ways: Full mode (aggregated column and grade item columns), the aggregated column only, or the grade items alone.'; $string['configaveragesdecimalpoints'] = 'Specifies the number of decimal points to display for each column mean. If Inherit is selected, the display type for each column is used.'; $string['configaveragesdisplaytype'] = 'Specifies how to display the mean for each column. If Inherit is selected, the display type for each column is used.'; diff --git a/lang/en/help/grade/aggregationposition.html b/lang/en/help/grade/aggregationposition.html deleted file mode 100644 index 2c69087bab1..00000000000 --- a/lang/en/help/grade/aggregationposition.html +++ /dev/null @@ -1,2 +0,0 @@ -
Defines the position of the aggregation total column in the report related to the grades being aggregated.