MDL-57890 ws: Return cmid in all get_by_courses WebServices
[moodle.git] / mod / label / classes / external.php
index cd43576..064af2d 100644 (file)
@@ -120,6 +120,7 @@ class mod_label_external extends external_api {
                     new external_single_structure(
                         array(
                             'id' => new external_value(PARAM_INT, 'Module id'),
+                            'coursemodule' => new external_value(PARAM_INT, 'Course module id'),
                             'course' => new external_value(PARAM_INT, 'Course id'),
                             'name' => new external_value(PARAM_RAW, 'Label name'),
                             'intro' => new external_value(PARAM_RAW, 'Label contents'),