From 441bf62e1e767991ac3d25c14ed8d1291b142639 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 9 Aug 2008 15:12:23 +0000 Subject: a simple widget that displays a users groups on their profile git-svn-id: https://code.elgg.org/elgg/trunk@1811 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/widgets/a_users_groups/edit.php | 14 ++++++++++++++ .../views/default/widgets/a_users_groups/view.php | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 mod/groups/views/default/widgets/a_users_groups/edit.php create mode 100644 mod/groups/views/default/widgets/a_users_groups/view.php (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/widgets/a_users_groups/edit.php b/mod/groups/views/default/widgets/a_users_groups/edit.php new file mode 100644 index 000000000..1dbb5900d --- /dev/null +++ b/mod/groups/views/default/widgets/a_users_groups/edit.php @@ -0,0 +1,14 @@ +

+ : + +

\ No newline at end of file diff --git a/mod/groups/views/default/widgets/a_users_groups/view.php b/mod/groups/views/default/widgets/a_users_groups/view.php new file mode 100644 index 000000000..030cbc3c9 --- /dev/null +++ b/mod/groups/views/default/widgets/a_users_groups/view.php @@ -0,0 +1,20 @@ +num_display; + if (!$number) + $number = 4; + + //the page owner + $owner = $vars['entity']->owner_guid; + + //$groups = get_users_membership($owner); + $groups = list_entities("group", "", $owner, $number, true, false); + + echo $groups; + +?> \ No newline at end of file -- cgit v1.2.3