Index: moodle/mod/lamslesson/mod_form.php =================================================================== RCS file: /usr/local/cvsroot/moodle/mod/lamslesson/mod_form.php,v diff -u -r1.5 -r1.6 --- moodle/mod/lamslesson/mod_form.php 24 Jan 2011 02:37:39 -0000 1.5 +++ moodle/mod/lamslesson/mod_form.php 24 Jan 2011 14:31:03 -0000 1.6 @@ -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 @@ //--> -