From aa04adce03438348c52477eacbd611c83d3caf68 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Mon, 2 Jan 2012 15:09:06 +0100 Subject: added new userpicker for site-wide event user management --- actions/event_calendar/manage_subscribers.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 actions/event_calendar/manage_subscribers.php (limited to 'actions/event_calendar') diff --git a/actions/event_calendar/manage_subscribers.php b/actions/event_calendar/manage_subscribers.php new file mode 100644 index 000000000..212150082 --- /dev/null +++ b/actions/event_calendar/manage_subscribers.php @@ -0,0 +1,17 @@ +canEdit()) { + $members = get_input('members'); + // clear the event from all personal calendars + remove_entity_relationships($event_guid, 'personal_event', TRUE); + // add event to personal calendars + foreach ($members as $user_guid) { + add_entity_relationship($user_guid,'personal_event',$event_guid); + } + system_message(elgg_echo('event_calendar:manage_subscribers:success')); + forward($event->getURL()); +} else { + register_error(elgg_echo('event_calendar:manage_subscribers:error')); + forward(); +} -- cgit v1.2.3