Skip to content

Commit

Permalink
Change the mapping for custom parameters requested
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Aug 3, 2024
1 parent 24190d6 commit 8b3a0a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lti/store/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,14 @@
if ( is_array($submissionReview) ) $additionalParams['submissionReview'] = $submissionReview;

$custom = array(
'availableStart' => '$ResourceLink.available.startDateTime',
'availableEnd' => '$ResourceLink.available.endDateTime',
'submissionStart' => '$ResourceLink.submission.startDateTime',
'submissionEnd' => '$ResourceLink.submission.endDateTime',
'availablestart' => '$ResourceLink.available.startDateTime',
'availableend' => '$ResourceLink.available.endDateTime',
'submissionstart' => '$ResourceLink.submission.startDateTime',
'submissionend' => '$ResourceLink.submission.endDateTime',
'resourcelink_id_history' => '$ResourceLink.id.history',
'context_id_history' => '$Context.id.history',
'canvas_caliper_url' => '$Caliper.url',
'coursegroup_id' => '$CourseGroup.id',
);

$retval->addLtiLinkItem($path, $title, $text, $icon, $fa_icon, $custom, $scoreMaximum, $resourceId, $additionalParams);
Expand Down

0 comments on commit 8b3a0a8

Please sign in to comment.