Permalink
Browse files

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.
  • Loading branch information...
1 parent 0a48977 commit 39af2f4171cbf79dd52347c4cf2d03fedc13a14a @nobelium nobelium committed Mar 10, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 mod/scorm/mod_form.php
View
@@ -81,12 +81,6 @@ public function definition() {
$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 @@ public function definition() {
$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'));

0 comments on commit 39af2f4

Please sign in to comment.