From c66dc3dff53aa5feede3159495106ede3227ead4 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 17 Dec 2012 15:27:58 +0800 Subject: [PATCH] MDL-37101 webservices: Define ws api core_calendar_create_calendar_events --- lib/db/services.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/db/services.php b/lib/db/services.php index 45ea9c6395f..1532b2b0ce4 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -720,6 +720,14 @@ $functions = array( 'capabilities'=> 'moodle/calendar:manageentries', 'moodle/calendar:manageownentries', 'moodle/calendar:managegroupentries' ), + 'core_calendar_create_calendar_events' => array( + 'classname' => 'core_calendar_external', + 'methodname' => 'create_calendar_events', + 'description' => 'Create calendar events', + 'classpath' => 'calendar/externallib.php', + 'type' => 'write', + 'capabilities'=> 'moodle/calendar:manageentries', 'moodle/calendar:manageownentries', 'moodle/calendar:managegroupentries' + ), ); $services = array(