Skip to content

Commit

Permalink
Merge branch 'MDL-38418-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 19, 2013
2 parents 65b5f40 + fb69f81 commit 8562010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grade/edit/settings/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8562010

Please sign in to comment.