mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
mod-data MDL-23656 Convert mod-data-preset to use the new file API
This commit is contained in:
parent
86e0afcfaa
commit
8aff1574dc
3 changed files with 161 additions and 59 deletions
|
@ -51,7 +51,7 @@ class data_save_preset_form extends moodleform {
|
|||
$this->_form->addElement('text', 'name', get_string('shortname'));
|
||||
$this->_form->setType('name', PARAM_FILE);
|
||||
$this->_form->addRule('name', null, 'required');
|
||||
$this->_form->addElement('checkbox', 'override', get_string('overwrite', 'data'), get_string('overrwritedesc', 'data'));
|
||||
$this->_form->addElement('checkbox', 'overwrite', get_string('overwrite', 'data'), get_string('overrwritedesc', 'data'));
|
||||
$this->_form->addElement('submit', 'saveaspreset', get_string('continue'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue