I'm editing the course settings form in moodle
and it works, it added the field but not saved, if I change in banco de dados
the saved data is printed in input
, only it does not 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);
}
Do I need to edit other files?