Merge branch 'MDL-52785-master' of git://github.com/jleyva/moodle
[moodle.git] / mod / quiz / db / services.php
index 687b315..12591be 100644 (file)
@@ -55,4 +55,12 @@ $functions = array(
         'capabilities'  => 'mod/quiz:view',
         'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
     ),
+
+    'mod_quiz_get_user_best_grade' => array(
+        'classname'     => 'mod_quiz_external',
+        'methodname'    => 'get_user_best_grade',
+        'description'   => 'Get the best current grade for the given user on a quiz.',
+        'type'          => 'read',
+        'capabilities'  => 'mod/quiz:view'
+    ),
 );