MDL-37077 webservices: Define the ws api method for deleting calendar events
authorAnkit Agarwal <ankit@moodle.com>
Mon, 10 Dec 2012 05:27:25 +0000 (13:27 +0800)
committerAnkit Agarwal <ankit@moodle.com>
Tue, 15 Jan 2013 05:23:13 +0000 (13:23 +0800)
lib/db/services.php

index 5ee25f3..6dd3c9d 100644 (file)
@@ -643,6 +643,19 @@ $functions = array(
             - similar to core get_component_strings() call',
         'type'        => 'read',
     ),
+
+
+    // === Calendar related functions ===
+
+    'core_calendar_delete_calendar_events' => array(
+        'classname'   => 'core_calendar_external',
+        'methodname'  => 'delete_calendar_events',
+        'description' => 'Delete calendar events',
+        'classpath'   => 'calendar/externallib.php',
+        'type'        => 'write',
+        'capabilities'=> 'moodle/calendar:manageentries', 'moodle/calendar:manageownentries', 'moodle/calendar:managegroupentries'
+    ),
+
 );
 
 $services = array(