diff --git a/externallib.php b/externallib.php index 9a8ba1c..6500d51 100644 --- a/externallib.php +++ b/externallib.php @@ -178,12 +178,12 @@ public static function user_proctored_modules_returns() { array( 'id' => new external_value(PARAM_INT, 'entry id'), 'name' => new external_value(PARAM_TEXT, 'module name'), - 'url' => new external_value(PARAM_TEXT, 'module url', VALUE_OPTIONAL), - 'status' => new external_value(PARAM_TEXT, 'status', VALUE_OPTIONAL), - 'course_name' => new external_value(PARAM_TEXT, 'module course name', VALUE_OPTIONAL), + 'url' => new external_value(PARAM_TEXT, 'module url'), + 'status' => new external_value(PARAM_TEXT, 'status'), + 'course_name' => new external_value(PARAM_TEXT, 'module course name'), 'time_limit_mins' => new external_value(PARAM_INT, 'module duration', VALUE_OPTIONAL), - 'mode' => new external_value(PARAM_TEXT, 'module proctoring mode', VALUE_OPTIONAL), - 'scheduling_required' => new external_value(PARAM_BOOL, 'module calendar mode', VALUE_OPTIONAL), + 'mode' => new external_value(PARAM_TEXT, 'module proctoring mode'), + 'scheduling_required' => new external_value(PARAM_BOOL, 'module calendar mode'), 'rules' => new external_single_structure( array( 'allow_to_use_websites' => new external_value(PARAM_BOOL, 'proctoring rule', VALUE_OPTIONAL), @@ -198,7 +198,7 @@ public static function user_proctored_modules_returns() { 'allow_wrong_gaze_direction'=> new external_value(PARAM_BOOL, 'proctoring rule', VALUE_OPTIONAL), ), 'rules set', VALUE_OPTIONAL), 'is_proctored' => new external_value(PARAM_BOOL, 'module proctored'), - 'accesscode' => new external_value(PARAM_TEXT, 'module code', VALUE_OPTIONAL), + 'accesscode' => new external_value(PARAM_TEXT, 'module code'), 'start' => new external_value(PARAM_INT, 'module start', VALUE_OPTIONAL), 'end' => new external_value(PARAM_INT, 'module end', VALUE_OPTIONAL), ), 'module') diff --git a/version.php b/version.php index 250f412..3af0d74 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'availability_examus'; -$plugin->version = 2018042400; +$plugin->version = 2018042401; $plugin->release = 'v3.1-r1'; $plugin->requires = 2016052300; $plugin->maturity = MATURITY_STABLE;