@@ -260,12 +260,6 @@ public static function add_lti_instance_parameters() {
260260 VALUE_DEFAULT ,
261261 0
262262 ),
263- 'showavailability ' => new external_value (
264- PARAM_INT ,
265- 'Show availability info to students (0 or 1) ' ,
266- VALUE_DEFAULT ,
267- 1
268- ),
269263 'hidewhenrestricted ' => new external_value (
270264 PARAM_INT ,
271265 'Hide activity when restricted (1) or show greyed-out (0) ' ,
@@ -293,7 +287,6 @@ public static function add_lti_instance_parameters() {
293287 * @param int $launchcontainer Launch container
294288 * @param int $availablefrom Unix timestamp for availability start
295289 * @param int $availableuntil Unix timestamp for availability end
296- * @param int $showavailability Show availability info to students (0 or 1)
297290 * @param int $hidewhenrestricted Completely hide activity when date restrictions apply (1) or show greyed-out (0)
298291 * @return array LTI instance details
299292 */
@@ -314,7 +307,6 @@ public static function add_lti_instance(
314307 $ launchcontainer = 1 ,
315308 $ availablefrom = 0 ,
316309 $ availableuntil = 0 ,
317- $ showavailability = 1 ,
318310 $ hidewhenrestricted = 0
319311 ) {
320312 global $ DB , $ CFG ;
@@ -340,7 +332,6 @@ public static function add_lti_instance(
340332 'launchcontainer ' => $ launchcontainer ,
341333 'availablefrom ' => $ availablefrom ,
342334 'availableuntil ' => $ availableuntil ,
343- 'showavailability ' => $ showavailability ,
344335 'hidewhenrestricted ' => $ hidewhenrestricted ,
345336 ]);
346337
@@ -721,12 +712,6 @@ public static function set_lti_availability_parameters() {
721712 VALUE_DEFAULT ,
722713 0
723714 ),
724- 'showavailability ' => new external_value (
725- PARAM_INT ,
726- 'Show availability info to students (0 or 1) ' ,
727- VALUE_DEFAULT ,
728- 1
729- ),
730715 'hidewhenrestricted ' => new external_value (
731716 PARAM_INT ,
732717 'Completely hide activity when restricted (1) or show greyed-out (0) ' ,
@@ -741,15 +726,13 @@ public static function set_lti_availability_parameters() {
741726 * @param int $coursemoduleid Course module ID
742727 * @param int $availablefrom Unix timestamp for availability start
743728 * @param int $availableuntil Unix timestamp for availability end
744- * @param int $showavailability Show availability info to students (0 or 1)
745729 * @param int $hidewhenrestricted Completely hide activity when date restrictions apply (1) or show greyed-out (0)
746730 * @return array Update status
747731 */
748732 public static function set_lti_availability (
749733 $ coursemoduleid ,
750734 $ availablefrom = 0 ,
751735 $ availableuntil = 0 ,
752- $ showavailability = 1 ,
753736 $ hidewhenrestricted = 0
754737 ) {
755738 global $ DB , $ CFG ;
@@ -762,7 +745,6 @@ public static function set_lti_availability(
762745 'coursemoduleid ' => $ coursemoduleid ,
763746 'availablefrom ' => $ availablefrom ,
764747 'availableuntil ' => $ availableuntil ,
765- 'showavailability ' => $ showavailability ,
766748 'hidewhenrestricted ' => $ hidewhenrestricted ,
767749 ]);
768750
0 commit comments