diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-06-26 21:41:58 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-06-26 21:41:58 +0200 |
commit | 0e264d23ae1b4c4a186cb855ed984bb082908fbb (patch) | |
tree | aa101aac2ad6fde7dba1a501eca4b1e33d12c4cd /actions/event_calendar/modify_full_calendar.php | |
parent | f7096ad23eefdb9bab187975544bcbd6eddf8c88 (diff) | |
download | elgg-0e264d23ae1b4c4a186cb855ed984bb082908fbb.tar.gz elgg-0e264d23ae1b4c4a186cb855ed984bb082908fbb.tar.bz2 |
more changes to support event polls
Diffstat (limited to 'actions/event_calendar/modify_full_calendar.php')
-rw-r--r-- | actions/event_calendar/modify_full_calendar.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/actions/event_calendar/modify_full_calendar.php b/actions/event_calendar/modify_full_calendar.php index 595bdbe4b..9288eb0e0 100644 --- a/actions/event_calendar/modify_full_calendar.php +++ b/actions/event_calendar/modify_full_calendar.php @@ -3,9 +3,18 @@ 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)) { +$start_time = get_input('startTime',''); +$resend = get_input('resend',''); +$minutes = get_input('minutes'); +$iso_date = get_input('iso_date'); +$result = event_calendar_modify_full_calendar($event_guid,$day_delta,$minute_delta,$start_time,$resend,$minutes,$iso_date); +if ($result) { $response = array('success'=>TRUE); + // specially handling for event polls + if (is_array($result)) { + $response['minutes'] = $result['minutes']; + $response['iso_date'] = $result['iso_date']; + } } else { $response = array('success'=>FALSE, 'message' =>elgg_echo('event_calendar:modify_full_calendar:error')); } |