Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding the ability to edit the LTI icon URL

  • Loading branch information...
commit 6d462df8560ff798ae6af8e8758cf8f6c86d165a 1 parent feb30fd
scriby authored
2  mod/lti/lang/en/lti.php
@@ -215,6 +215,8 @@
215 215
 $string['custom_config'] = 'Using custom tool configuration.';
216 216
 $string['tool_config_not_found'] = 'Tool configuration not found for this URL.';
217 217
 
  218
+$string['icon_url'] = 'Icon URL';
  219
+
218 220
 $string['return_to_course'] = 'Click <a href="{$a->link}" target="_top">here</a> to return to the course.';
219 221
 
220 222
 $string['lti_launch_error'] = 'An error occured when launching the external tool: ';
5  mod/lti/mod_form.php
@@ -122,6 +122,11 @@ function definition() {
122 122
         $mform->setAdvanced('instructorcustomparameters');
123 123
         $mform->addHelpButton('instructorcustomparameters', 'custom', 'lti');
124 124
         
  125
+        $mform->addElement('text', 'icon', get_string('icon_url', 'lti'), array('size'=>'64'));
  126
+        $mform->setType('icon', PARAM_TEXT);
  127
+        $mform->setAdvanced('icon');
  128
+        //$mform->addHelpButton('icon', 'icon', 'lti');
  129
+        
125 130
 //-------------------------------------------------------------------------------
126 131
         // Add privacy preferences fieldset where users choose whether to send their data
127 132
         $mform->addElement('header', 'privacy', get_string('privacy', 'lti'));

0 notes on commit 6d462df

Please sign in to comment.
Something went wrong with that request. Please try again.