From a60bdd8cfd92fc43195523c7867c7a0aaaca2efc Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 21 Jul 2009 09:20:44 +0000 Subject: [PATCH] blocks editing: MDL-19889 tidy up HTML form class. --- blocks/html/config_instance.html | 22 ---------------------- blocks/html/edit_form.php | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100755 blocks/html/config_instance.html diff --git a/blocks/html/config_instance.html b/blocks/html/config_instance.html deleted file mode 100755 index cbbac9c5f6..0000000000 --- a/blocks/html/config_instance.html +++ /dev/null @@ -1,22 +0,0 @@ -config->text) ? $this->config->text : ''; - if (!$this->content_is_trusted()) { - $text = clean_text($text, FORMAT_HTML); - } -?> - - - - - - - - - - - - -
: ()
:
-
diff --git a/blocks/html/edit_form.php b/blocks/html/edit_form.php index 4cb70e65b4..2b96b00143 100644 --- a/blocks/html/edit_form.php +++ b/blocks/html/edit_form.php @@ -31,11 +31,11 @@ */ class block_html_edit_form extends block_edit_form { protected function specific_definition($mform) { - // Then show the fields about where this block appears. + // Fields for editing HTML block title and contents. $mform->addElement('header', 'configheader', get_string('blocksettings', 'block')); $mform->addElement('text', 'config_title', get_string('configtitle', 'block_html')); - $mform->setType('configtitle', PARAM_MULTILANG); + $mform->setType('config_title', PARAM_MULTILANG); // TODO MDL-19844 should use the new editor field type. $mform->addElement('htmleditor', 'config_text', get_string('configcontent', 'block_html')); -- 2.39.5