mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-24924 course/import - delete one more file I missed in my prev commit
This commit is contained in:
parent
96c726b663
commit
ab00250268
@ -1,64 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
}
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
class course_import_activities_form_1 extends moodleform {
|
||||
|
||||
function definition() {
|
||||
|
||||
global $CFG;
|
||||
$mform =& $this->_form;
|
||||
$text = $this->_customdata['text'];
|
||||
$options = $this->_customdata['options'];
|
||||
$courseid = $this->_customdata['courseid'];
|
||||
$mform->addElement('header', 'general', '');//fill in the data depending on page params
|
||||
//later using set_data
|
||||
$mform->addElement('select', 'fromcourse', $text, $options);
|
||||
|
||||
// buttons
|
||||
$submit_string = get_string('usethiscourse');
|
||||
$this->add_action_buttons(false, $submit_string);
|
||||
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->setType('id', PARAM_INT);
|
||||
$mform->setConstants(array('id'=> $courseid));
|
||||
|
||||
}
|
||||
|
||||
function validation($data, $files) {
|
||||
return parent::validation($data, $files);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class course_import_activities_form_2 extends moodleform {
|
||||
|
||||
function definition() {
|
||||
|
||||
global $CFG;
|
||||
$mform =& $this->_form;
|
||||
$courseid = $this->_customdata['courseid'];
|
||||
|
||||
$mform->addElement('header', 'general', '');//fill in the data depending on page params
|
||||
//later using set_data
|
||||
$mform->addElement('text', 'fromcoursesearch', get_string('searchcourses'));
|
||||
|
||||
// buttons
|
||||
$this->add_action_buttons(false, get_string('searchcourses'));
|
||||
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->setType('id', PARAM_INT);
|
||||
$mform->setConstants(array('id'=> $courseid));
|
||||
|
||||
}
|
||||
|
||||
function validation($data, $files) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user