Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding the ability to edit the LTI icon URL

  • Loading branch information...
commit 6d462df8560ff798ae6af8e8758cf8f6c86d165a 1 parent feb30fd
scriby scriby authored
Showing with 7 additions and 0 deletions.
  1. +2 −0  mod/lti/lang/en/lti.php
  2. +5 −0 mod/lti/mod_form.php
2  mod/lti/lang/en/lti.php
View
@@ -215,6 +215,8 @@
$string['custom_config'] = 'Using custom tool configuration.';
$string['tool_config_not_found'] = 'Tool configuration not found for this URL.';
+$string['icon_url'] = 'Icon URL';
+
$string['return_to_course'] = 'Click <a href="{$a->link}" target="_top">here</a> to return to the course.';
$string['lti_launch_error'] = 'An error occured when launching the external tool: ';
5 mod/lti/mod_form.php
View
@@ -122,6 +122,11 @@ function definition() {
$mform->setAdvanced('instructorcustomparameters');
$mform->addHelpButton('instructorcustomparameters', 'custom', 'lti');
+ $mform->addElement('text', 'icon', get_string('icon_url', 'lti'), array('size'=>'64'));
+ $mform->setType('icon', PARAM_TEXT);
+ $mform->setAdvanced('icon');
+ //$mform->addHelpButton('icon', 'icon', 'lti');
+
//-------------------------------------------------------------------------------
// Add privacy preferences fieldset where users choose whether to send their data
$mform->addElement('header', 'privacy', get_string('privacy', 'lti'));
Please sign in to comment.
Something went wrong with that request. Please try again.