MDL-57890 ws: Return cmid in all get_by_courses WebServices
[moodle.git] / mod / url / classes / external.php
index 59e28c2..aba5d40 100644 (file)
@@ -185,6 +185,7 @@ class mod_url_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, 'URL name'),
                             'intro' => new external_value(PARAM_RAW, 'Summary'),