MDL-59239 mod_workshop: New WS mod_workshop_view_submission
[moodle.git] / mod / workshop / db / services.php
index e9bf366..d25ce62 100644 (file)
@@ -155,4 +155,12 @@ $functions = array(
         'type'          => 'read',
         'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
     ),
+    'mod_workshop_view_submission' => array(
+        'classname'     => 'mod_workshop_external',
+        'methodname'    => 'view_submission',
+        'description'   => 'Trigger the submission viewed event.',
+        'type'          => 'write',
+        'capabilities'  => 'mod/workshop:view',
+        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
+    ),
 );