aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index e3f4d019a..7b11def20 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -75,6 +75,7 @@
// Register profile menu hook
register_plugin_hook('profile_menu', 'profile', 'forum_profile_menu');
+ register_plugin_hook('profile_menu', 'profile', 'activity_profile_menu');
// allow ecml in discussion
register_plugin_hook('get_views', 'ecml', 'groups_ecml_views_hook');
@@ -276,6 +277,15 @@
set_input('group_guid', $page[1]);
include($CONFIG->pluginspath . "groups/forum.php");
break;
+ case "edittopic":
+ set_input('group', $page[1]);
+ set_input('topic', $page[2]);
+ include($CONFIG->pluginspath . "groups/edittopic.php");
+ break;
+ case "activity":
+ set_input('group', $page[1]);
+ include($CONFIG->pluginspath . "groups/activity.php");
+ break;
case "owned" :
// Owned by a user
if (isset($page[1]))
@@ -581,6 +591,18 @@
}
return $return_value;
}
+
+ function activity_profile_menu($hook, $entity_type, $return_value, $params) {
+ global $CONFIG;
+
+ if ($params['owner'] instanceof ElggGroup) {
+ $return_value[] = array(
+ 'text' => elgg_echo('Activity'),
+ 'href' => "{$CONFIG->url}pg/groups/activity/{$params['owner']->getGUID()}"
+ );
+ }
+ return $return_value;
+ }
/**
* Parse ECML on group discussion views