aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authorkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:21:44 +0000
committerkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:21:44 +0000
commitb32b99e3f464d23de30e5c199ae33ba1819b6fbd (patch)
tree554dbc0c43533deecc9963eb11e8e021e500813b /mod/groups/start.php
parent640444e38d4e3a6c88b182464071944627b4e11e (diff)
downloadelgg-b32b99e3f464d23de30e5c199ae33ba1819b6fbd.tar.gz
elgg-b32b99e3f464d23de30e5c199ae33ba1819b6fbd.tar.bz2
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
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php7
1 files changed, 5 insertions, 2 deletions
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');
}