Skip to content

Commit

Permalink
changed: transfer group ownership now show members alphabeticly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Oct 17, 2011
1 parent 916cd11 commit 1cf8e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Version History
x.x:
- added: option to make all site users a member of an auto join group
- changed: moved some functions
- changed: transfer group ownership now show members alphabeticly
1.6 (2011-10-05):
- added: option to resend invites to already invited users
Expand Down
6 changes: 6 additions & 0 deletions views/default/group_tools/forms/admin_transfer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

global $CONFIG;

$group = $vars["entity"];
$user = get_loggedin_user();

Expand All @@ -10,6 +12,8 @@
"relationship" => "friend",
"relationship_guid" => $user->getGUID(),
"limit" => false,
"joins" => array("JOIN " . $CONFIG->dbprefix . "users_entity ue ON e.guid = ue.guid"),
"order_by" => "ue.name"
);

$member_options = array(
Expand All @@ -18,6 +22,8 @@
"relationship_guid" => $group->getGUID(),
"inverse_relationship" => true,
"limit" => false,
"joins" => array("JOIN " . $CONFIG->dbprefix . "users_entity ue ON e.guid = ue.guid"),
"order_by" => "ue.name"
);

$friends = elgg_get_entities_from_relationship($friends_options);
Expand Down

0 comments on commit 1cf8e20

Please sign in to comment.