2024-07-05 09:13:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("$CFG->dirroot/course/moodleform_mod.php");
|
|
|
|
|
2024-07-05 09:38:10 +00:00
|
|
|
class mod_exp360_mod_form extends moodleform_mod
|
|
|
|
{
|
|
|
|
public function definition()
|
|
|
|
{
|
2024-07-05 09:13:58 +00:00
|
|
|
$mform = $this->_form;
|
|
|
|
|
|
|
|
$mform->addElement('header', 'general', get_string('general', 'form'));
|
|
|
|
|
|
|
|
$mform->addElement('text', 'name', get_string('exp360name', 'exp360'), array('size' => '64'));
|
|
|
|
$mform->setType('name', PARAM_TEXT);
|
|
|
|
$mform->addRule('name', null, 'required', null, 'client');
|
|
|
|
$mform->addRule('name', null, 'maxlength', 255, 'client');
|
|
|
|
|
2024-07-05 09:38:10 +00:00
|
|
|
// Add the standard intro elements.
|
2024-07-05 09:13:58 +00:00
|
|
|
$this->standard_intro_elements();
|
|
|
|
|
|
|
|
$mform->addElement('text', 'content_id', get_string('contentid', 'exp360'), array('size' => '64'));
|
|
|
|
$mform->setType('content_id', PARAM_TEXT);
|
|
|
|
$mform->addRule('content_id', null, 'required', null, 'client');
|
|
|
|
|
|
|
|
$this->standard_coursemodule_elements();
|
|
|
|
|
|
|
|
$this->add_action_buttons();
|
|
|
|
}
|
2024-07-05 09:38:10 +00:00
|
|
|
}
|