]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
end date and time now also stored properly as GMT
authorKevin Jardine <kevinjardine@yahoo.com>
Thu, 15 Mar 2012 11:01:15 +0000 (12:01 +0100)
committerKevin Jardine <kevinjardine@yahoo.com>
Thu, 15 Mar 2012 11:01:15 +0000 (12:01 +0100)
actions/event_calendar/modify_full_calendar.php [new file with mode: 0644]

diff --git a/actions/event_calendar/modify_full_calendar.php b/actions/event_calendar/modify_full_calendar.php
new file mode 100644 (file)
index 0000000..595bdbe
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+elgg_load_library('elgg:event_calendar');
+$event_guid = get_input('event_guid',0);
+$day_delta = get_input('dayDelta');
+$minute_delta = get_input('minuteDelta','');
+
+if (event_calendar_modify_full_calendar($event_guid,$day_delta,$minute_delta)) {
+       $response = array('success'=>TRUE);
+} else {       
+       $response = array('success'=>FALSE, 'message' =>elgg_echo('event_calendar:modify_full_calendar:error'));
+}
+
+echo json_encode($response);
+
+exit;