diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-02-02 16:19:37 +0100 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-02-02 16:19:37 +0100 |
commit | e0e9ff33a7f5fc334af8127fc8680925ce967d14 (patch) | |
tree | 6384673db77ca63065fbf72cedf236ba5fb081c8 /views/default/plugins | |
parent | 5aadcdd48153b4197c44bdacfc504ebd7db34c3f (diff) | |
download | elgg-e0e9ff33a7f5fc334af8127fc8680925ce967d14.tar.gz elgg-e0e9ff33a7f5fc334af8127fc8680925ce967d14.tar.bz2 |
added support for new personal calendar management options
Diffstat (limited to 'views/default/plugins')
-rw-r--r-- | views/default/plugins/event_calendar/settings.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/views/default/plugins/event_calendar/settings.php b/views/default/plugins/event_calendar/settings.php index 54ff5c1c3..963f64549 100644 --- a/views/default/plugins/event_calendar/settings.php +++ b/views/default/plugins/event_calendar/settings.php @@ -3,6 +3,13 @@ $yn_options = array(elgg_echo('event_calendar:settings:yes')=>'yes', elgg_echo('event_calendar:settings:no')=>'no', ); +$membership_options = array( + elgg_echo('event_calendar:personal_manage:open') => 'open' , + elgg_echo('event_calendar:personal_manage:closed') => 'closed', + elgg_echo('event_calendar:personal_manage:private') => 'private', + elgg_echo('event_calendar:personal_manage:by_event') => 'by_event', +); + $access_options = array( ACCESS_PRIVATE => elgg_echo("PRIVATE"), ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"), ACCESS_PUBLIC => elgg_echo("PUBLIC")); @@ -222,15 +229,14 @@ $body .= elgg_view('input/radio',array('name'=>'params[add_users_notify]','value $body .= '<br />'; $event_calendar_personal_manage = elgg_get_plugin_setting('personal_manage', 'event_calendar'); -if (!$event_calendar_personal_manage) { - $event_calendar_personal_manage = 'yes'; +if (!$event_calendar_personal_manage && $personal_manage == 'yes') { + $event_calendar_personal_manage = 'open'; } $body .= elgg_echo('event_calendar:settings:personal_manage:title'); $body .= '<br />'; -$body .= elgg_view('input/radio',array('name'=>'params[personal_manage]','value'=>$event_calendar_personal_manage,'options'=>$yn_options)); - -$body .= '<br />'; +$body .= elgg_view('input/radio',array('name'=>'params[personal_manage]','value'=>$event_calendar_personal_manage,'options'=>$membership_options)); +$body .= '<p>'.elgg_echo('event_calendar:settings:personal_manage:description').'</p>'; $event_calendar_spots_display = elgg_get_plugin_setting('spots_display', 'event_calendar'); if (!$event_calendar_spots_display) { |