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

This commit is contained in:
Ankit Agarwal 2012-12-10 13:27:25 +08:00
parent ca48fe5f97
commit 5e1350abaa

View 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(