diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 4e1892d32b0..7bcf2cd96c9 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -708,38 +708,6 @@ function lti_get_shared_secrets_by_key($key) { return $values; } -/** - * Prints the various configured tool types - * - */ -function lti_filter_print_types() { - global $CFG; - - $types = lti_filter_get_types(); - if (!empty($types)) { - echo ''; - } else { - echo '
'; - echo get_string('notypes', 'lti'); - echo '
'; - } -} - /** * Delete a Basic LTI configuration * @@ -833,6 +801,8 @@ function lti_get_type_type_config($id) { $basicltitype = $DB->get_record('lti_types', array('id' => $id)); $config = lti_get_type_config($id); + $type = new stdClass(); + $type->lti_typename = $basicltitype->name; $type->typeid = $basicltitype->id; @@ -901,7 +871,7 @@ function lti_get_type_type_config($id) { } if (isset($config['module_class_type'])) { - $type->lti_module_class_type = $config['module_class_type']; + $type->lti_module_class_type = $config['module_class_type']; } return $type; @@ -1062,8 +1032,6 @@ function lti_sign_parameters($oldparms, $endpoint, $method, $oauthconsumerkey, $ * @param $debug Debug (true/false) */ function lti_post_launch_html($newparms, $endpoint, $debug=false) { - //global $lastbasestring; - $r = "
\n"; $submittext = $newparms['ext_submit'];