aboutsummaryrefslogtreecommitdiff
path: root/actions/event_calendar
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-03-15 12:01:15 +0100
committerKevin Jardine <kevinjardine@yahoo.com>2012-03-15 12:01:15 +0100
commit28016443bad102a76074095576da46993182dc92 (patch)
treee7c1bb92b12e4e4210ed04d17e8e59154acb6520 /actions/event_calendar
parent5e5777559cd36d2ef32a786b93d047a1a7a3037e (diff)
downloadelgg-28016443bad102a76074095576da46993182dc92.tar.gz
elgg-28016443bad102a76074095576da46993182dc92.tar.bz2
end date and time now also stored properly as GMT
Diffstat (limited to 'actions/event_calendar')
-rw-r--r--actions/event_calendar/modify_full_calendar.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/actions/event_calendar/modify_full_calendar.php b/actions/event_calendar/modify_full_calendar.php
new file mode 100644
index 000000000..595bdbe4b
--- /dev/null
+++ b/actions/event_calendar/modify_full_calendar.php
@@ -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;