From 0cbf2bbb8735c8473bba0cc2ff41faa9d35d528e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 21 Dec 2017 11:12:40 +0400 Subject: The data recovery form has been extended --- classes/service_form.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'classes/service_form.php') diff --git a/classes/service_form.php b/classes/service_form.php index 4f1ce31..8ec6c0f 100644 --- a/classes/service_form.php +++ b/classes/service_form.php @@ -125,6 +125,11 @@ class service_backup_form extends moodleform { /* Form heading */ $mform->addElement("header", "editserviceheader", new lang_string("restore", "moodle")); + /* Flag for deleting existing data */ + $mform->addElement("advcheckbox", "deleterecords", new lang_string("deleteall", "moodle")); + $mform->setType("deleterecords", PARAM_BOOL); + $mform->setDefault("deleterecords", 1); + /* Download the file */ $mform->addElement("filepicker", "backupfile", new lang_string("file", "moodle")); $mform->addRule("backupfile", null, "required"); -- cgit v1.2.3