aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-16 19:20:35 -0700
committerCash Costello <cash.costello@gmail.com>2012-07-16 19:20:35 -0700
commitba8e725dbfead01810edb8619ecd0ec054a75812 (patch)
tree47892fa8ec3bd8f3f35fa127a0959394860426f2 /mod/groups/views
parent6c9b6a031c6d8a8474bc5e7a1717a5ae3bee1535 (diff)
parent8c0897d92395d897a8e40a2d1b97e5f838520296 (diff)
downloadelgg-ba8e725dbfead01810edb8619ecd0ec054a75812.tar.gz
elgg-ba8e725dbfead01810edb8619ecd0ec054a75812.tar.bz2
Merge pull request #306 from sembrestels/limited-groups
Limited groups
Diffstat (limited to 'mod/groups/views')
-rw-r--r--mod/groups/views/default/plugins/groups/settings.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/groups/views/default/plugins/groups/settings.php b/mod/groups/views/default/plugins/groups/settings.php
index 7197dcb37..41ea146db 100644
--- a/mod/groups/views/default/plugins/groups/settings.php
+++ b/mod/groups/views/default/plugins/groups/settings.php
@@ -8,6 +8,11 @@ if (!isset($vars['entity']->hidden_groups)) {
$vars['entity']->hidden_groups = 'no';
}
+// set default value
+if (!isset($vars['entity']->limited_groups)) {
+ $vars['entity']->limited_groups = 'no';
+}
+
echo '<div>';
echo elgg_echo('groups:allowhiddengroups');
echo ' ';
@@ -20,3 +25,16 @@ echo elgg_view('input/dropdown', array(
'value' => $vars['entity']->hidden_groups,
));
echo '</div>';
+
+echo '<div>';
+echo elgg_echo('groups:whocancreate');
+echo ' ';
+echo elgg_view('input/dropdown', array(
+ 'name' => 'params[limited_groups]',
+ 'options_values' => array(
+ 'no' => elgg_echo('LOGGED_IN'),
+ 'yes' => elgg_echo('admin')
+ ),
+ 'value' => $vars['entity']->limited_groups,
+));
+echo '</div>';