diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-03 12:31:42 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-03 12:31:42 +0200 |
commit | 0b25adcd921149b50845647980284e8ab66d8fed (patch) | |
tree | 0702f1ef157f0417cd1c17ba711f76e563e299ef /start.php | |
parent | 2d19bfa232be5eff43bb6c1d1eef12e681552956 (diff) | |
download | elgg-0b25adcd921149b50845647980284e8ab66d8fed.tar.gz elgg-0b25adcd921149b50845647980284e8ab66d8fed.tar.bz2 |
major changes to add new features, including a full calendar and repeating events
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -265,6 +265,9 @@ function event_calendar_page_handler($page) { gatekeeper(); echo event_calendar_get_page_content_review_requests($page[1]); break; + case 'get_fullcalendar_events': + echo event_calendar_get_page_content_fullcalendar_events($page[1],$page[2],$page[3],$page[4]); + break; default: return FALSE; } @@ -365,3 +368,25 @@ function event_calendar_entity_menu_prepare($hook, $type, $return, $params) { return $return; } + +function event_calendar_handle_join($event, $object_type, $object) { + $group = $object['group']; + $user = $object['user']; + $user_guid = $user->getGUID(); + $events = event_calendar_get_events_for_group($group->getGUID()); + foreach ($events as $event) { + $event_id = $event->getGUID(); + event_calendar_add_personal_event($event_id,$user_guid); + } +} + +function event_calendar_handle_leave($event, $object_type, $object) { + $group = $object['group']; + $user = $object['user']; + $user_guid = $user->getGUID(); + $events = event_calendar_get_events_for_group($group->getGUID()); + foreach ($events as $event) { + $event_id = $event->getGUID(); + event_calendar_remove_personal_event($event_id,$user_guid); + } +} |