This commit is contained in:
Ilya Tregubov
2024-01-08 10:03:47 +08:00
+10 -5
View File
@@ -1752,24 +1752,29 @@ function mod_assign_core_calendar_event_timestart_updated(\calendar_event $event
/**
* Return a list of all the user preferences used by mod_assign.
*
* @return array
* @uses core_user::is_current_user
*
* @return array[]
*/
function mod_assign_user_preferences() {
function mod_assign_user_preferences(): array {
$preferences = array();
$preferences['assign_filter'] = array(
'type' => PARAM_ALPHA,
'null' => NULL_NOT_ALLOWED,
'default' => ''
'default' => '',
'permissioncallback' => [core_user::class, 'is_current_user'],
);
$preferences['assign_workflowfilter'] = array(
'type' => PARAM_ALPHA,
'null' => NULL_NOT_ALLOWED,
'default' => ''
'default' => '',
'permissioncallback' => [core_user::class, 'is_current_user'],
);
$preferences['assign_markerfilter'] = array(
'type' => PARAM_ALPHANUMEXT,
'null' => NULL_NOT_ALLOWED,
'default' => ''
'default' => '',
'permissioncallback' => [core_user::class, 'is_current_user'],
);
return $preferences;