Browse Source

Merge pull request #130 from ptramonti/patch-1

Adding gradepass feature using standard functions
MOODLE_29_STABLE
Dan Marsden 10 years ago
parent
commit
eb2acb3e35
  1. 4
      mod_form.php

4
mod_form.php

@ -51,8 +51,8 @@ class mod_attendance_mod_form extends moodleform_mod {
$mform->addRule('name', null, 'required', null, 'client'); $mform->addRule('name', null, 'required', null, 'client');
$mform->setDefault('name', get_string('modulename', 'attendance')); $mform->setDefault('name', get_string('modulename', 'attendance'));
$mform->addElement('modgrade', 'grade', get_string('grade')); // Grade settings.
$mform->setDefault('grade', 100); $this->standard_grading_coursemodule_elements();
$this->standard_coursemodule_elements(true); $this->standard_coursemodule_elements(true);
$this->add_action_buttons(); $this->add_action_buttons();

Loading…
Cancel
Save