MDL-45062 web services: Description of method result value for update_grades_return is invalid

This commit is contained in:
Juan Leyva 2014-04-15 11:59:44 +02:00
parent 069fe267b6
commit ccc165fd8e

View File

@ -499,13 +499,10 @@ class core_grades_external extends external_api {
* @since Moodle 2.7
*/
public static function update_grades_returns() {
return new external_single_structure(
array (
'result' => new external_value(
PARAM_INT,
'A value like ' . GRADE_UPDATE_OK . ' => OK, ' . GRADE_UPDATE_FAILED . ' => FAILED
as defined in lib/grade/constants.php')
)
return new external_value(
PARAM_INT,
'A value like ' . GRADE_UPDATE_OK . ' => OK, ' . GRADE_UPDATE_FAILED . ' => FAILED
as defined in lib/grade/constants.php'
);
}
}