aboutsummaryrefslogtreecommitdiff
path: root/classes/service_form.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/service_form.php')
-rw-r--r--classes/service_form.php5
1 files changed, 5 insertions, 0 deletions
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");