2
I’m editing the course settings form on moodle
and it works, it added the field but not saved if I change in banco de dados
the data saved are printed on the input
, only it didn’t save.
edit_form.php
$mform->addElement('text', 'hora', 'Hora do Curso', 'maxlength="100" size="20"');
$mform->setType('hora', PARAM_TEXT);
if (!empty($course->id)) {
$mform->setConstant('hora', $course->hora);
}
$mform->addElement('text', 'local', 'Local do Curso', 'maxlength="100" size="20"');
$mform->setType('local', PARAM_TEXT);
if (!empty($course->id)) {
$mform->setConstant('local', $course->local);
}
I need to edit other files ?