MDL-34899 blocks/html: Allow instances to specify additional CSS classes

This commit is contained in:
Aaron Barnes
2012-08-20 13:27:08 +12:00
parent 87e9331d93
commit 14bcde673d
3 changed files with 21 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ class block_html_edit_form extends block_edit_form {
$mform->addElement('editor', 'config_text', get_string('configcontent', 'block_html'), null, $editoroptions);
$mform->addRule('config_text', null, 'required', null, 'client');
$mform->setType('config_text', PARAM_RAW); // XSS is prevented when printing the block contents and serving files
$mform->addElement('text', 'config_classes', get_string('configclasses', 'block_html'));
$mform->setType('config_classes', PARAM_TEXT);
$mform->addHelpButton('config_classes', 'configclasses', 'block_html');
}
function set_data($defaults) {