$mform->setAdvanced('securetoolurl');
$mform->addHelpButton('securetoolurl', 'secure_launch_url', 'lti');
$mform->hideIf('securetoolurl', 'typeid', 'in', $noncontentitemtypes);
+ } else {
+ // We still need those on page to support deep linking return, but hidden to avoid instructor modification.
+ $mform->addElement('hidden', 'toolurl', '', array('id' => 'id_toolurl'));
+ $mform->setType('toolurl', PARAM_URL);
+ $mform->addElement('hidden', 'securetoolurl', '', array('id' => 'id_securetoolurl'));
+ $mform->setType('securetoolurl', PARAM_URL);
}
- $mform->addElement('hidden', 'urlmatchedtypeid', '', array( 'id' => 'id_urlmatchedtypeid' ));
+ $mform->addElement('hidden', 'urlmatchedtypeid', '', array('id' => 'id_urlmatchedtypeid'));
$mform->setType('urlmatchedtypeid', PARAM_INT);
+ $mform->addElement('hidden', 'lineitemresourceid', '', array( 'id' => 'id_lineitemresourceid' ));
+ $mform->setType('lineitemresourceid', PARAM_TEXT);
+
+ $mform->addElement('hidden', 'lineitemtag', '', array( 'id' => 'id_lineitemtag'));
+ $mform->setType('lineitemtag', PARAM_TEXT);
+
$launchoptions = array();
$launchoptions[LTI_LAUNCH_CONTAINER_DEFAULT] = get_string('default', 'lti');
$launchoptions[LTI_LAUNCH_CONTAINER_EMBED] = get_string('embed', 'lti');