Skip to content

Commit

Permalink
MDL-57741 enrol_lti: Add Launch URL to Published as LTI tools
Browse files Browse the repository at this point in the history
  • Loading branch information
cescobedo committed Aug 16, 2018
1 parent 7c730df commit 7985a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions enrol/lti/classes/manage_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,19 @@ public function col_launch($tool) {
$cartridgeurl = $url;
$secretlabel = get_string('secret', 'enrol_lti');
$secret = $tool->secret;
$launchurl = helper::get_launch_url($tool->id);
$launchurllabel = get_string('launchurl', 'enrol_lti');

$data = [
"rows" => [
[ "label" => $cartridgeurllabel, "text" => $cartridgeurl, "id" => "cartridgeurl", "hidelabel" => false ],
[ "label" => $secretlabel, "text" => $secret, "id" => "secret", "hidelabel" => false ],
[ "label" => $launchurllabel, "text" => $launchurl, "id" => "launchurl", "hidelabel" => false ],
]
];

$return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);

return $return;
}

Expand Down
3 changes: 2 additions & 1 deletion enrol/lti/lang/en/enrol_lti.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
$string['membersyncmodeunenrolmissing'] = 'Unenrol missing users';
$string['notoolsprovided'] = 'No tools provided';
$string['launchdetails'] = 'Launch details';
$string['launchdetails_help'] = 'A cartridge URL (also called configuration URL) plus secret are required for configuring the tool.';
$string['launchdetails_help'] = 'A cartridge URL (also called configuration URL) plus secret or a launch URL are required for configuring the tool.';
$string['launchurl'] = 'Launch URL';
$string['lti:config'] = 'Configure \'Publish as LTI tool\' instances';
$string['lti:unenrol'] = 'Unenrol users from the course';
$string['opentool'] = 'Open tool';
Expand Down

0 comments on commit 7985a77

Please sign in to comment.