aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 11:51:14 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 11:51:14 +0000
commit7ae14257ed961068f663fbc0889a0858f656d295 (patch)
treed0dc94b08003eb1769b06ff27cd462cfa4cae978 /mod/groups/start.php
parentbb9475ef7ffc684697218886184fd97b23442d5d (diff)
downloadelgg-7ae14257ed961068f663fbc0889a0858f656d295.tar.gz
elgg-7ae14257ed961068f663fbc0889a0858f656d295.tar.bz2
Group forum link added to group ownerblock
git-svn-id: http://code.elgg.org/elgg/trunk@6159 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 9c7e0e935..07b2d9d71 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -72,6 +72,9 @@
// Now override icons
register_plugin_hook('entity:icon:url', 'group', 'groups_groupicon_hook');
+
+ // Register profile menu hook
+ register_plugin_hook('profile_menu', 'profile', 'forum_profile_menu');
}
/**
@@ -592,6 +595,20 @@
return $access_array;
}
+ function forum_profile_menu($hook, $entity_type, $return_value, $params) {
+ global $CONFIG;
+
+ $group_owner = page_owner_entity();
+
+ $return_value[] = array(
+ 'text' => elgg_echo('groups:forum'),
+ 'href' => "{$CONFIG->url}pg/groups/forum/{$group_owner->getGUID()}"
+ );
+
+ return $return_value;
+ }
+
+
register_extender_url_handler('group_topicpost_url','annotation', 'group_topic_post');
// Register a handler for create groups