From b32b99e3f464d23de30e5c199ae33ba1819b6fbd Mon Sep 17 00:00:00 2001 From: kevinjardine Date: Mon, 9 Mar 2009 11:21:44 +0000 Subject: Groups now support add_group_tool_option so that any group tool can be toggled on or off via the group's edit form. git-svn-id: https://code.elgg.org/elgg/trunk@3131 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forms/groups/edit.php | 52 +++++++++----------------- 1 file changed, 17 insertions(+), 35 deletions(-) (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 6b5f7b02d..82dd3d71f 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -54,46 +54,24 @@

+ group_tool_options)) { + foreach($vars['config']->group_tool_options as $group_option) { + $group_option_toggle_name = $group_option->name."_enable"; + if ($group_option->default_on) { + $group_option_default_value = 'yes'; + } else { + $group_option_default_value = 'no'; + } +?>

-

-

- -

-

-

+