aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/settings
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-08 14:37:46 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-08 14:37:46 +0000
commitc62205862130103778018c87d6fccee0ab6ae6d2 (patch)
tree6555b3fa934a70a03c293ff5b3ab8ecc00c6d4d6 /mod/groups/views/default/settings
parentfd32e03501a2764a1abd8da8ba0a08b52f7ede03 (diff)
downloadelgg-c62205862130103778018c87d6fccee0ab6ae6d2.tar.gz
elgg-c62205862130103778018c87d6fccee0ab6ae6d2.tar.bz2
cleanup of the groups plugin views
git-svn-id: http://code.elgg.org/elgg/trunk@7863 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/settings')
-rw-r--r--mod/groups/views/default/settings/groups/edit.php38
1 files changed, 21 insertions, 17 deletions
diff --git a/mod/groups/views/default/settings/groups/edit.php b/mod/groups/views/default/settings/groups/edit.php
index 311e58dee..25feed3aa 100644
--- a/mod/groups/views/default/settings/groups/edit.php
+++ b/mod/groups/views/default/settings/groups/edit.php
@@ -1,18 +1,22 @@
<?php
- $hidden_groups = $vars['entity']->hidden_groups;
- if (!$hidden_groups) $hidden_groups = 'no';
-?>
-<p>
- <?php echo elgg_echo('groups:allowhiddengroups'); ?>
-
- <?php
- echo elgg_view('input/pulldown', array(
- 'internalname' => 'params[hidden_groups]',
- 'options_values' => array(
- 'no' => elgg_echo('option:no'),
- 'yes' => elgg_echo('option:yes')
- ),
- 'value' => $hidden_groups
- ));
- ?>
-</p> \ No newline at end of file
+/**
+ * Groups plugin settings
+ */
+
+// set default value
+if (!isset($vars['entity']->hidden_groups)) {
+ $vars['entity']->hidden_groups = 'no';
+}
+
+echo '<p>';
+echo elgg_echo('groups:allowhiddengroups');
+echo ' ';
+echo elgg_view('input/pulldown', array(
+ 'internalname' => 'params[hidden_groups]',
+ 'options_values' => array(
+ 'no' => elgg_echo('option:no'),
+ 'yes' => elgg_echo('option:yes')
+ ),
+ 'value' => $vars['entity']->hidden_groups,
+));
+echo '</p>';