course-import MDL-23752 Implemented course import functionality back into Moodle 2.0

The course import now makes use of the backup and restore processed and the backup UI to allow the user to import one course into another.
The new UI is much the same as the backup ui except preceeded by a course selector to choose the course to import from.
This commit is contained in:
Sam Hemelryk 2010-08-17 02:07:30 +00:00
parent 6c2f430931
commit ad93ddd5f7
8 changed files with 596 additions and 12 deletions

View file

@ -17,8 +17,6 @@ $PAGE->set_pagelayout('standard');
require_login($course, null, $cm);
require_capability('moodle/restore:restorecourse', $context);
$isfrontpage = ($course->id == SITEID);
if ($stage & restore_ui::STAGE_CONFIRM + restore_ui::STAGE_DESTINATION) {
$restore = restore_ui::engage_independent_stage($stage, $contextid);
} else {