Skip to content

Commit

Permalink
Merge branch 'MDL-59876-master' of git://github.com/jleyva/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Nov 13, 2017
2 parents 3ac10fa + abdb8f5 commit dbf0819
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions enrol/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public static function get_enrolled_users_with_capability_returns() {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'name' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preferences'),
'name' => new external_value(PARAM_RAW, 'The name of the preferences'),
'value' => new external_value(PARAM_RAW, 'The value of the custom field'),
)
), 'User preferences', VALUE_OPTIONAL),
Expand Down Expand Up @@ -725,7 +725,7 @@ public static function get_enrolled_users_returns() {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'name' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preferences'),
'name' => new external_value(PARAM_RAW, 'The name of the preferences'),
'value' => new external_value(PARAM_RAW, 'The value of the custom field'),
)
), 'User preferences', VALUE_OPTIONAL),
Expand Down
10 changes: 5 additions & 5 deletions user/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function create_users_parameters() {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'type' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preference'),
'type' => new external_value(PARAM_RAW, 'The name of the preference'),
'value' => new external_value(PARAM_RAW, 'The value of the preference')
)
), 'User preferences', VALUE_OPTIONAL),
Expand Down Expand Up @@ -341,7 +341,7 @@ public static function update_user_preferences_parameters() {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'type' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preference'),
'type' => new external_value(PARAM_RAW, 'The name of the preference'),
'value' => new external_value(PARAM_RAW, 'The value of the preference')
)
), 'User preferences', VALUE_DEFAULT, array()
Expand Down Expand Up @@ -496,7 +496,7 @@ public static function update_users_parameters() {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'type' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preference'),
'type' => new external_value(PARAM_RAW, 'The name of the preference'),
'value' => new external_value(PARAM_RAW, 'The value of the preference')
)
), 'User preferences', VALUE_OPTIONAL),
Expand Down Expand Up @@ -1069,8 +1069,8 @@ public static function user_description($additionalfields = array()) {
'preferences' => new external_multiple_structure(
new external_single_structure(
array(
'name' => new external_value(PARAM_ALPHANUMEXT, 'The name of the preferences'),
'value' => new external_value(PARAM_RAW, 'The value of the custom field'),
'name' => new external_value(PARAM_RAW, 'The name of the preferences'),
'value' => new external_value(PARAM_RAW, 'The value of the preference'),
)
), 'Users preferences', VALUE_OPTIONAL)
);
Expand Down

0 comments on commit dbf0819

Please sign in to comment.