. /** * * @package mod_autoattendmod * @copyright Fumi.Iseki * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; require_once ($CFG->dirroot.'/course/moodleform_mod.php'); class mod_autoattendmod_mod_form extends moodleform_mod { function definition() { $mform = $this->_form; //------------------------------------------------------------------------------- $mform->addElement('header', 'general', get_string('general', 'form')); // $mform->addElement('text', 'name', get_string('name', 'autoattendmod'), array('size'=>'64')); $mform->setType('name', PARAM_TEXT); $mform->addRule('name', null, 'required', null, 'client'); $this->add_intro_editor(true, get_string('description', 'autoattendmod')); $this->standard_coursemodule_elements(); //------------------------------------------------------------------------------- $this->add_action_buttons(true, false, null); } }