aboutsummaryrefslogtreecommitdiff
path: root/actions/event_calendar/modify_full_calendar.php
blob: 595bdbe4ba67cc05834ea2201d7341511ff34e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;