From: tjhunt Date: Tue, 21 Jul 2009 09:20:44 +0000 (+0000) Subject: blocks editing: MDL-19889 tidy up HTML form class. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a60bdd8cfd92fc43195523c7867c7a0aaaca2efc;p=moodle.git blocks editing: MDL-19889 tidy up HTML form class. --- 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'));