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/start.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod/groups/start.php') diff --git a/mod/groups/start.php b/mod/groups/start.php index 29f96785d..bbc27baa6 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -46,7 +46,7 @@ register_action("groups/leave",false, $CONFIG->pluginspath . "groups/actions/leave.php"); register_action("groups/joinrequest",false, $CONFIG->pluginspath . "groups/actions/joinrequest.php"); register_action("groups/killrequest",false,$CONFIG->pluginspath . "groups/actions/groupskillrequest.php"); - register_action("groups/addtogroup",false, $CONFIG->pluginspath . "groups/actions/addtogroup.php"); + register_action("groups/addtogroup",false, $CONFIG->pluginspath . "groups/actions/addtogroup.php"); register_action("groups/invite",false, $CONFIG->pluginspath . "groups/actions/invite.php"); // Use group widgets @@ -73,7 +73,10 @@ // Listen to notification events and supply a more useful message register_plugin_hook('notify:entity:message', 'object', 'groupforumtopic_notify_message'); - + + // add the forum tool option + add_group_tool_option('forum',elgg_echo('groups:enableforum'),true); + // Now override icons register_plugin_hook('entity:icon:url', 'group', 'groups_groupicon_hook'); } -- cgit v1.2.3