mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-45062 web services: Description of method result value for update_grades_return is invalid
This commit is contained in:
parent
069fe267b6
commit
ccc165fd8e
1 changed files with 4 additions and 7 deletions
|
@ -499,13 +499,10 @@ class core_grades_external extends external_api {
|
||||||
* @since Moodle 2.7
|
* @since Moodle 2.7
|
||||||
*/
|
*/
|
||||||
public static function update_grades_returns() {
|
public static function update_grades_returns() {
|
||||||
return new external_single_structure(
|
return new external_value(
|
||||||
array (
|
|
||||||
'result' => new external_value(
|
|
||||||
PARAM_INT,
|
PARAM_INT,
|
||||||
'A value like ' . GRADE_UPDATE_OK . ' => OK, ' . GRADE_UPDATE_FAILED . ' => FAILED
|
'A value like ' . GRADE_UPDATE_OK . ' => OK, ' . GRADE_UPDATE_FAILED . ' => FAILED
|
||||||
as defined in lib/grade/constants.php')
|
as defined in lib/grade/constants.php'
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue