function display_default() { require_once elispm::file('form/configcrsdefaultform.class.php'); $configform = new configcrsdefaultform('index.php?s=dftcrs§ion=admn', $this); $configform->set_data(elis::$config->local_elisprogram); if ($configdata = $configform->get_data()) { $this->_config_set_value($configdata, 'crsdftname', 0); $this->_config_set_value($configdata, 'crsdftcode', 0); $this->_config_set_value($configdata, 'crsdftidnumber'); $this->_config_set_value($configdata, 'crsdftsyllabus', 0); $this->_config_set_value($configdata, 'crsdftlengthdescription', 0); $this->_config_set_value($configdata, 'crsdftlength', 0); $this->_config_set_value($configdata, 'crsdftcredits', 0); $this->_config_set_value($configdata, 'crsdftcompletion_grade', 0); $this->_config_set_value($configdata, 'crsdftenvironmentid', 0); $this->_config_set_value($configdata, 'crsdftcost', 0); $this->_config_set_value($configdata, 'crsdftversion', 0); } $configform->display(); }
function action_default() { global $CFG, $CURMAN; require_once $CFG->dirroot . '/curriculum/form/configcrsdefaultform.class.php'; $configform = new configcrsdefaultform('index.php?s=dftcrs§ion=admn', $this); $configform->set_data($CURMAN->config); if ($configdata = $configform->get_data()) { $this->_config_set_value($configdata, 'crsdftname', 0); $this->_config_set_value($configdata, 'crsdftcode', 0); $this->_config_set_value($configdata, 'crsdftidnumber'); $this->_config_set_value($configdata, 'crsdftsyllabus', 0); $this->_config_set_value($configdata, 'crsdftlengthdescription', 0); $this->_config_set_value($configdata, 'crsdftlength', 0); $this->_config_set_value($configdata, 'crsdftcredits', 0); $this->_config_set_value($configdata, 'crsdftcompletion_grade', 0); $this->_config_set_value($configdata, 'crsdftenvironmentid', 0); $this->_config_set_value($configdata, 'crsdftcost', 0); $this->_config_set_value($configdata, 'crsdftversion', 0); } $configform->display(); }