MDL-69746 tool_replace: additional skip tables

This commit is contained in:
Nathan Nguyen
2020-10-02 14:57:18 +10:00
parent e049d30613
commit 6ced7617c5
6 changed files with 66 additions and 7 deletions
+7
View File
@@ -46,6 +46,13 @@ class tool_replace_form extends moodleform {
$mform->addElement('text', 'replace', get_string('replacewith', 'tool_replace'), 'size="50"', PARAM_RAW);
$mform->addElement('static', 'replacest', '', get_string('replacewithhelp', 'tool_replace'));
$mform->setType('replace', PARAM_RAW);
$mform->addElement('textarea', 'additionalskiptables', get_string("additionalskiptables", "tool_replace"),
array('rows' => 5, 'cols' => 50));
$mform->addElement('static', 'additionalskiptables_desc', '', get_string('additionalskiptables_desc', 'tool_replace'));
$mform->setType('additionalskiptables', PARAM_RAW);
$mform->setDefault('additionalskiptables', '');
$mform->addElement('checkbox', 'shorten', get_string('shortenoversized', 'tool_replace'));
$mform->addRule('replace', get_string('required'), 'required', null, 'client');