From 90743958a7fbabd5bae64c2f9a462f700fa5c2df Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 22 Feb 2024 16:09:23 +0800 Subject: [PATCH] MDL-81152 mod_lti: Custom parameter configuration in the instance form Re-enables the configuration of custom parameters when creating or modifying a tool instance in a course. Backport of MDL-80914. --- mod/lti/mod_form.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/lti/mod_form.php b/mod/lti/mod_form.php index 7980ff49d7e..f1b7f7f8043 100644 --- a/mod/lti/mod_form.php +++ b/mod/lti/mod_form.php @@ -465,8 +465,12 @@ class mod_lti_mod_form extends moodleform_mod { $mform->setType('resourcekey', PARAM_TEXT); $mform->addElement('hidden', 'password', '', ['id' => 'id_password']); $mform->setType('password', PARAM_TEXT); - $mform->addElement('hidden', 'instructorcustomparameters', '', ['id' => 'id_instructorcustomparameters']); + $mform->addElement('textarea', 'instructorcustomparameters', get_string('custom', 'lti'), + ['rows' => 4, 'cols' => 60]); $mform->setType('instructorcustomparameters', PARAM_TEXT); + $mform->setAdvanced('instructorcustomparameters'); + $mform->addHelpButton('instructorcustomparameters', 'custom', 'lti'); + $mform->setForceLtr('instructorcustomparameters'); $mform->addElement('hidden', 'icon', '', ['id' => 'id_icon']); $mform->setType('icon', PARAM_URL); $mform->addElement('hidden', 'secureicon', '', ['id' => 'id_secureicon']);