diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-01-02 15:09:06 +0100 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-01-02 15:09:06 +0100 |
commit | aa04adce03438348c52477eacbd611c83d3caf68 (patch) | |
tree | e9ab59edf8fdd4685e7779ca6a9250d6396dc31d /views/default | |
parent | 52326aa6023bea7efc6208ce80f3e78797a3fcc9 (diff) | |
download | elgg-aa04adce03438348c52477eacbd611c83d3caf68.tar.gz elgg-aa04adce03438348c52477eacbd611c83d3caf68.tar.bz2 |
added new userpicker for site-wide event user management
Diffstat (limited to 'views/default')
-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; |