From 03d22ef096c57e462e81fac078ffd463302a256e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 23 Nov 2017 17:58:29 +0400 Subject: Refactoring the code for creating forms --- classes/editform.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/classes/editform.php b/classes/editform.php index 64e1e20..4f1ce31 100644 --- a/classes/editform.php +++ b/classes/editform.php @@ -22,16 +22,10 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -namespace local_webhooks; - defined("MOODLE_INTERNAL") || die(); require_once($CFG->libdir . "/formslib.php"); -use lang_string; -use moodleform; -use report_eventlist_list_generator; - /** * Description editing form definition. * @@ -46,19 +40,6 @@ class service_edit_form extends moodleform { parent::__construct($baseurl); } - /** - * Preparing data before displaying. - * - * @param object $record - */ - public function set_data($record) { - if (!empty($record->events)) { - $record->events = unserialize(gzuncompress(base64_decode($record->events))); - } - - return parent::set_data($record); - } - /** * Defines the standard structure of the form. */ -- cgit v1.2.3