MDL-67853 message: Remove on/offline settings on message preferences

This commit is contained in:
Pau Ferrer Ocaña 2020-01-29 16:45:32 +01:00
parent e8ad1eaa43
commit d74bd798b6
44 changed files with 696 additions and 682 deletions

View file

@ -3020,6 +3020,7 @@ class core_message_external extends external_api {
*
* @return external_single_structure the structure
* @since Moodle 3.2
* @todo Remove loggedin and loggedoff from processors structure on MDL-73284.
*/
protected static function get_preferences_structure() {
return new external_single_structure(
@ -3061,15 +3062,20 @@ class core_message_external extends external_api {
'name' => new external_value(PARAM_NOTAGS, 'Name'),
'displayname' => new external_value(PARAM_TEXT, 'Display name'),
'checked' => new external_value(PARAM_BOOL, 'Is checked?'),
)
),
'DEPRECATED ATTRIBUTE -
Kept for backward compatibility, use enabled instead.',
),
'loggedoff' => new external_single_structure(
array(
'name' => new external_value(PARAM_NOTAGS, 'Name'),
'displayname' => new external_value(PARAM_TEXT, 'Display name'),
'checked' => new external_value(PARAM_BOOL, 'Is checked?'),
)
),
'DEPRECATED ATTRIBUTE -
Kept for backward compatibility, use enabled instead.',
),
'enabled' => new external_value(PARAM_BOOL, 'Is enabled?'),
)
),
'Processors values for this notification'