Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37077 webservices: Define the ws api method for deleting calendar…

… events
  • Loading branch information...
commit 5e1350abaa72eaf187fedc7b9332e0c9c2ecc37a 1 parent ca48fe5
@ankitagarwal ankitagarwal authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/db/services.php
View
13 lib/db/services.php
@@ -643,6 +643,19 @@
- 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(
Please sign in to comment.
Something went wrong with that request. Please try again.