MDL-49609 mod_lti: Add Content-Item message
Added option for tools to support Content-Item message and redirect to/from tool provider when creating an instance.
This commit is contained in:
@@ -101,6 +101,7 @@ class mod_lti_edit_types_form extends moodleform{
|
||||
$mform->addElement('textarea', 'lti_customparameters', get_string('custom', 'lti'), array('rows' => 4, 'cols' => 60));
|
||||
$mform->setType('lti_customparameters', PARAM_TEXT);
|
||||
$mform->addHelpButton('lti_customparameters', 'custom', 'lti');
|
||||
$mform->setAdvanced('lti_customparameters');
|
||||
|
||||
if (!empty($this->_customdata->isadmin)) {
|
||||
$options = array(
|
||||
@@ -136,6 +137,14 @@ class mod_lti_edit_types_form extends moodleform{
|
||||
$mform->setDefault('lti_launchcontainer', LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS);
|
||||
$mform->addHelpButton('lti_launchcontainer', 'default_launch_container', 'lti');
|
||||
$mform->setType('lti_launchcontainer', PARAM_INT);
|
||||
$mform->setAdvanced('lti_launchcontainer');
|
||||
|
||||
$mform->addElement('checkbox', 'lti_contentitem', ' ', ' ' . get_string('contentitem', 'lti'));
|
||||
$mform->addHelpButton('lti_contentitem', 'contentitem', 'lti');
|
||||
$mform->setAdvanced('lti_contentitem');
|
||||
if ($istool) {
|
||||
$mform->disabledIf('lti_contentitem', null);
|
||||
}
|
||||
|
||||
$mform->addElement('hidden', 'oldicon');
|
||||
$mform->setType('oldicon', PARAM_URL);
|
||||
|
||||
Reference in New Issue
Block a user