aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/plugins
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-09-17 11:27:12 -0400
committercash <cash.costello@gmail.com>2011-09-17 11:27:12 -0400
commit65158f8d0796108ef5534a91b6ee34bf55d29223 (patch)
tree4976ae43eba5fdea7e5fc7ae025deacba179517d /mod/groups/views/default/plugins
parentf35af8ff5df99baf4beece44fb92cc3dcdc3cd15 (diff)
downloadelgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.gz
elgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.bz2
Fixes #2990 updated the bundled plugins to use the new plugin/user settings structure
Diffstat (limited to 'mod/groups/views/default/plugins')
-rw-r--r--mod/groups/views/default/plugins/groups/settings.php22
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>';