From fb69f811a8d17d0f977209a309b719374e1aee81 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 12 Mar 2013 15:46:03 +0800 Subject: [PATCH] MDL-38418 grade: Course settings sections are expanded by default --- grade/edit/settings/form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grade/edit/settings/form.php b/grade/edit/settings/form.php index 229bb7fac8101..b90f056c0653a 100644 --- a/grade/edit/settings/form.php +++ b/grade/edit/settings/form.php @@ -67,6 +67,7 @@ function definition() { // Grade item settings $mform->addElement('header', 'grade_item_settings', get_string('gradeitemsettings', 'grades')); + $mform->setExpanded('grade_item_settings'); if ($can_view_admin_links) { $link = '' . $strchangedefaults . ''; $mform->addElement('static', 'gradeitemsettingslink', null, $link); @@ -110,6 +111,7 @@ function definition() { $functionname = 'grade_'.$type.'_'.$plugin.'_settings_definition'; if (function_exists($functionname)) { $mform->addElement('header', 'grade_'.$type.$plugin, get_string('pluginname', 'grade'.$type.'_'.$plugin, NULL)); + $mform->setExpanded('grade_'.$type.$plugin); if ($can_view_admin_links) { $link = '' . $strchangedefaults . ''; $mform->addElement('static', 'gradeitemsettingslink', null, $link);