diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 16:24:57 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-07 16:24:57 +0000 |
commit | 5dd849742b104a6c9b2b0092d853d8171e31f151 (patch) | |
tree | 0289fc4d25c1de1eb6f74fdc5be826422dacf233 /mod/groups/start.php | |
parent | 5ca5347e6cc1d2a71412495b2bc2898fd12292e7 (diff) | |
download | elgg-5dd849742b104a6c9b2b0092d853d8171e31f151.tar.gz elgg-5dd849742b104a6c9b2b0092d853d8171e31f151.tar.bz2 |
Added a 'member of' groups page and made it default
git-svn-id: https://code.elgg.org/elgg/trunk@1766 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r-- | mod/groups/start.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index 88cdef8d1..e97a3f2de 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -21,7 +21,7 @@ // Set up the menu for logged in users
if (isloggedin())
{
- add_menu(elgg_echo('groups'), $CONFIG->wwwroot . "pg/groups/owned/" . $_SESSION['user']->username,'groups');
+ add_menu(elgg_echo('groups'), $CONFIG->wwwroot . "pg/groups/member/" . $_SESSION['user']->username,'groups');
add_menu(elgg_echo('groups:alldiscussion'),$CONFIG->wwwroot."mod/groups/discussions.php");
}
else
@@ -119,7 +119,8 @@ if (get_context() == "groups") {
if ((page_owner() == $_SESSION['guid'] || !page_owner()) && isloggedin()) {
add_submenu_item(elgg_echo('groups:new'), $CONFIG->wwwroot."pg/groups/new/");
- add_submenu_item(elgg_echo('groups:yours'), $CONFIG->wwwroot . "pg/groups/owned/" . $_SESSION['user']->username);
+ add_submenu_item(elgg_echo('groups:owned'), $CONFIG->wwwroot . "pg/groups/owned/" . $_SESSION['user']->username);
+ add_submenu_item(elgg_echo('groups:yours'), $CONFIG->wwwroot . "pg/groups/member/" . $_SESSION['user']->username);
add_submenu_item(elgg_echo('groups:all'), $CONFIG->wwwroot . "pg/groups/world/");
} else if (page_owner()) {
$page_owner = page_owner_entity();
@@ -180,6 +181,13 @@ set_input('username',$page[1]);
include($CONFIG->pluginspath . "groups/index.php");
+ break;
+ case "member" :
+ // User is a member of
+ if (isset($page[1]))
+ set_input('username',$page[1]);
+
+ include($CONFIG->pluginspath . "groups/membership.php");
break;
default:
set_input('group_guid', $page[0]);
|