Index: moodle/mod/lamslesson/mod_form.php =================================================================== diff -u -r8bc3f6c4fd5b7348954b1026d365ca583a244e8d -rc04ae82310a4ce21cfd1988bf7362cebf6779f5b --- moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision 8bc3f6c4fd5b7348954b1026d365ca583a244e8d) +++ moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision c04ae82310a4ce21cfd1988bf7362cebf6779f5b) @@ -31,17 +31,27 @@ $PAGE->requires->yui2_lib('yahoo-dom-event'); $PAGE->requires->yui2_lib('treeview'); -$PAGE->requires->yui2_lib('event'); -$PAGE->requires->yui2_lib('connection'); + require_once($CFG->dirroot.'/course/moodleform_mod.php'); class mod_lamslesson_mod_form extends moodleform_mod { function definition() { global $COURSE, $USER, $CFG; + $mform =& $this->_form; -//------------------------------------------------------------------------------- + if (!empty($this->_instance)) { + $sequence_id = $this->current->sequence_id; + $currentsequence = get_string('currentsequence','lamslesson'); + $updatewarning = get_string('updatewarning','lamslesson'); + } else { + $sequence_id = 0; + $currentsequence = ''; + $updatewarning = ''; + } + + //------------------------------------------------------------------------------- /// Adding the "general" fieldset, where all the common settings are showed $mform->addElement('header', 'general', get_string('general', 'form')); @@ -120,13 +130,13 @@ //--> -