123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- defined('MOODLE_INTERNAL') || die();
- require_once($CFG->dirroot.'/course/moodleform_mod.php');
- class mod_nasatlx_mod_form extends moodleform_mod {
-
- public function definition() {
- $mform = $this->_form;
-
-
- $mform->addElement('header', 'general', get_string('general', 'form'));
-
- $mform->addElement('text', 'name', get_string('nasatlxname', 'nasatlx'), array('size'=>'64'));
- if (!empty($CFG->formatstringstriptags)) {
- $mform->setType('name', PARAM_TEXT);
- } else {
- $mform->setType('name', PARAM_CLEAN);
- }
- $mform->addRule('name', null, 'required', null, 'client');
- $mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
- $mform->addHelpButton('name', 'nasatlxname', 'nasatlx');
-
-
- $this->standard_intro_elements();
-
-
-
- $mform->addElement('static', 'label1', 'nasatlxsetting1', 'Your nasatlx fields go here. Replace me!');
- $mform->addElement('header', 'nasatlxfieldset', get_string('nasatlxfieldset', 'nasatlx'));
- $mform->addElement('static', 'label2', 'nasatlxsetting2', 'Your nasatlx fields go here. Replace me!');
-
-
- $this->standard_coursemodule_elements();
-
-
- $this->add_action_buttons();
- }
- }
|