MDL-57890 ws: Return cmid in all get_by_courses WebServices
[moodle.git] / mod / resource / classes / external.php
index 0c06abc..539aaf5 100644 (file)
@@ -186,6 +186,7 @@ class mod_resource_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, 'Page name'),
                             'intro' => new external_value(PARAM_RAW, 'Summary'),