diff options
Diffstat (limited to 'mod/groups/views/default/plugins')
-rw-r--r-- | mod/groups/views/default/plugins/groups/settings.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/groups/views/default/plugins/groups/settings.php b/mod/groups/views/default/plugins/groups/settings.php new file mode 100644 index 000000000..7197dcb37 --- /dev/null +++ b/mod/groups/views/default/plugins/groups/settings.php @@ -0,0 +1,22 @@ +<?php +/** + * Groups plugin settings + */ + +// set default value +if (!isset($vars['entity']->hidden_groups)) { + $vars['entity']->hidden_groups = 'no'; +} + +echo '<div>'; +echo elgg_echo('groups:allowhiddengroups'); +echo ' '; +echo elgg_view('input/dropdown', array( + 'name' => 'params[hidden_groups]', + 'options_values' => array( + 'no' => elgg_echo('option:no'), + 'yes' => elgg_echo('option:yes') + ), + 'value' => $vars['entity']->hidden_groups, +)); +echo '</div>'; |