mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-41855 SCORM form : Auto update frequency option under File manager
Placing the Auto update frequency option underneath the File manager in /mod/scorm/mod_form.php This changes the postion of the auto update freq option both while creating a new scorm object and while editing the scorm object.
This commit is contained in:
parent
0a489777fc
commit
39af2f4171
@ -81,12 +81,6 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
$mform->setType('scormtype', PARAM_ALPHA);
|
||||
}
|
||||
|
||||
// Update packages timing.
|
||||
$mform->addElement('select', 'updatefreq', get_string('updatefreq', 'scorm'), scorm_get_updatefreq_array());
|
||||
$mform->setType('updatefreq', PARAM_INT);
|
||||
$mform->setDefault('updatefreq', $cfgscorm->updatefreq);
|
||||
$mform->addHelpButton('updatefreq', 'updatefreq', 'scorm');
|
||||
|
||||
// New local package upload.
|
||||
$filemanageroptions = array();
|
||||
$filemanageroptions['accepted_types'] = array('.zip', '.xml');
|
||||
@ -98,6 +92,12 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
$mform->addHelpButton('packagefile', 'package', 'scorm');
|
||||
$mform->disabledIf('packagefile', 'scormtype', 'noteq', SCORM_TYPE_LOCAL);
|
||||
|
||||
// Update packages timing.
|
||||
$mform->addElement('select', 'updatefreq', get_string('updatefreq', 'scorm'), scorm_get_updatefreq_array());
|
||||
$mform->setType('updatefreq', PARAM_INT);
|
||||
$mform->setDefault('updatefreq', $cfgscorm->updatefreq);
|
||||
$mform->addHelpButton('updatefreq', 'updatefreq', 'scorm');
|
||||
|
||||
// Display Settings.
|
||||
$mform->addElement('header', 'displaysettings', get_string('appearance'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user