MDL-52670 quiz: Adding function to mobile service
authorDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:12:10 +0000 (15:12 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 9 Mar 2016 07:12:10 +0000 (15:12 +0800)
mod/quiz/db/services.php

index da470cb..687b315 100644 (file)
@@ -52,6 +52,7 @@ $functions = array(
         'methodname'    => 'get_user_attempts',
         'description'   => 'Return a list of attempts for the given quiz and user.',
         'type'          => 'read',
-        'capabilities'  => 'mod/quiz:view'
+        'capabilities'  => 'mod/quiz:view',
+        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
     ),
 );