diff options
-rw-r--r-- | actions/event_calendar/modify_full_calendar.php | 15 |
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; |