aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-21 10:12:40 +0300
committerValentin Popov <info@valentineus.link>2017-12-21 10:12:40 +0300
commit0cbf2bbb8735c8473bba0cc2ff41faa9d35d528e (patch)
treec47b53cc6a3a49cf648c4ba0234fb441357bda59
parent3e054dd94e590f9c1d670dbeba99a5000ecf53e1 (diff)
downloadlocal_webhooks-0cbf2bbb8735c8473bba0cc2ff41faa9d35d528e.tar.xz
local_webhooks-0cbf2bbb8735c8473bba0cc2ff41faa9d35d528e.zip
The data recovery form has been extended
-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");