diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/forms/event_calendar/manage_subscribers.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/default/forms/event_calendar/manage_subscribers.php b/views/default/forms/event_calendar/manage_subscribers.php new file mode 100644 index 000000000..8039c5015 --- /dev/null +++ b/views/default/forms/event_calendar/manage_subscribers.php @@ -0,0 +1,14 @@ +<?php +$event = $vars['event']; +$users = event_calendar_get_users_for_event($event->guid,0); +$guids = array(); +foreach($users as $user) { + $guids[] = $user->guid; +} +// TODO: if the event container is a group need to restrict user picker to the members of the group? +$content = elgg_view('input/userpicker_plus',array('value'=> $guids)); +$content .= '<br /><br />'; +$content .= elgg_view('input/hidden',array('name'=>'event_guid','value'=>$event->guid)); +$content .= elgg_view('input/submit',array('value'=>elgg_echo('submit'),'name'=>'submit_manage_subscribers','id'=>'submit-manage-subscribers')); + +echo $content; |