Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38418 grade: Course settings sections are expanded by default

  • Loading branch information...
commit fb69f811a8d17d0f977209a309b719374e1aee81 1 parent 8673a98
@FMCorz FMCorz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  grade/edit/settings/form.php
View
2  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 = '<a href="' . $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=gradeitemsettings">' . $strchangedefaults . '</a>';
$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 = '<a href="' . $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=gradereport' . $plugin . '">' . $strchangedefaults . '</a>';
$mform->addElement('static', 'gradeitemsettingslink', null, $link);
Please sign in to comment.
Something went wrong with that request. Please try again.