|
@ -1,4 +1,9 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
if (!defined('MOODLE_INTERNAL')) { |
|
|
|
|
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
require_once ($CFG->dirroot.'/course/moodleform_mod.php'); |
|
|
require_once ($CFG->dirroot.'/course/moodleform_mod.php'); |
|
|
|
|
|
|
|
|
class mod_attforblock_mod_form extends moodleform_mod { |
|
|
class mod_attforblock_mod_form extends moodleform_mod { |
|
@ -21,6 +26,8 @@ class mod_attforblock_mod_form extends moodleform_mod { |
|
|
$mform->addElement('modgrade', 'grade', get_string('grade')); |
|
|
$mform->addElement('modgrade', 'grade', get_string('grade')); |
|
|
$mform->setDefault('grade', 100); |
|
|
$mform->setDefault('grade', 100); |
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
$this->standard_coursemodule_elements(true); |
|
|
$this->standard_coursemodule_elements(true); |
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------- |
|
|
//------------------------------------------------------------------------------- |
|
|