MDL-50540 glossary: New WS mod_glossary_get_glossaries_by_courses
[moodle.git] / lib / db / services.php
index 3bf4a07..6c0408a 100644 (file)
@@ -1132,7 +1132,7 @@ $functions = array(
     ),
 
     // Tag functions.
-   'core_tag_update_tags' => array(
+    'core_tag_update_tags' => array(
         'classname'   => 'core_tag_external',
         'methodname'  => 'update_tags',
         'description' => 'Updates tags',
@@ -1148,6 +1148,14 @@ $functions = array(
         'ajax'        => true
     ),
 
+    'mod_glossary_get_glossaries_by_courses' => array(
+        'classname'     => 'mod_glossary_external',
+        'methodname'    => 'get_glossaries_by_courses',
+        'description'   => 'Retrieve a list of glossaries from several courses.',
+        'type'          => 'read',
+        'capabilities'  => 'mod/glossary:view'
+    ),
+
 );
 
 $services = array(
@@ -1269,6 +1277,7 @@ $services = array(
             'mod_lti_view_lti',
             'mod_imscp_view_imscp',
             'mod_imscp_get_imscps_by_courses',
+            'mod_glossary_get_glossaries_by_courses',
             ),
         'enabled' => 0,
         'restrictedusers' => 0,