Adding the lis_outcome_service_url to the launch
authorChris Scribner <scriby@gmail.com>
Wed, 5 Oct 2011 18:43:15 +0000 (14:43 -0400)
committerChris Scribner <scriby@gmail.com>
Mon, 7 Nov 2011 01:41:56 +0000 (20:41 -0500)
mod/lti/locallib.php

index 89bd8c5..795cd19 100644 (file)
@@ -225,6 +225,10 @@ function lti_build_request($instance, $typeconfig, $course) {
         $requestparams["lis_person_contact_email_primary"] = $USER->email;
     }
 
+    //Add outcome service URL
+    $url = new moodle_url('/mod/lti/service.php');
+    $requestparams['lis_outcome_service_url'] = $url->out();
+    
     // Concatenate the custom parameters from the administrator and the instructor
     // Instructor parameters are only taken into consideration if the administrator
     // has giver permission