From 831996de4bdd84a1eaf63fd01ba33e59fcc43208 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 13 Dec 2016 10:47:01 +0800 Subject: [PATCH] #52 Simplified colourpicker form element's code --- includes/colourpicker.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/includes/colourpicker.php b/includes/colourpicker.php index 16585a5..682e4b3 100644 --- a/includes/colourpicker.php +++ b/includes/colourpicker.php @@ -17,7 +17,6 @@ defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.'); require_once($CFG->dirroot . '/lib/form/editor.php'); -require_once($CFG->dirroot . '/lib/form/templatable_form_element.php'); /** * Form element for handling the colour picker. @@ -27,14 +26,6 @@ require_once($CFG->dirroot . '/lib/form/templatable_form_element.php'); * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class MoodleQuickForm_customcert_colourpicker extends MoodleQuickForm_editor { - use templatable_form_element { - export_for_template as export_for_template_base; - } - - /** - * The string for the help icon, if empty then no help icon will be displayed. - */ - public $_helpbutton = ''; /** * Constructor for the colour picker. @@ -92,15 +83,6 @@ class MoodleQuickForm_customcert_colourpicker extends MoodleQuickForm_editor { return $content; } - /** - * Return the html for the help button. - * - * @return string html for help button - */ - public function getHelpButton(){ - return $this->_helpbutton; - } - public function export_for_template(renderer_base $output) { $context = $this->export_for_template_base($output); $context['html'] = $this->toHtml();