From b8c4d73377d93cc54cb10fd1c3fac173c8f57627 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 31 May 2011 19:24:26 -0700 Subject: show group affiliations in contact editor --- mod/contacts.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mod') diff --git a/mod/contacts.php b/mod/contacts.php index 4baa2d2d7..e7a800500 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -249,6 +249,15 @@ function contacts_content(&$a) { $sparkle = ''; } + $grps = ''; + $member_of = member_of($r[0]['id']); + if(is_array($member_of) && count($member_of)) { + $grps = t('Member of: ') . EOL . ''; + } + $insecure = '

' . t('Privacy Unavailable') . ' ' . t('Private communications are not available for this contact.') . '

'; @@ -275,6 +284,7 @@ function contacts_content(&$a) { '$altcrepair' => t('Repair contact URL settings'), '$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"), '$lblrecent' => t('View conversations'), + '$grps' => $grps, '$delete' => t('Delete contact'), '$poll_interval' => contact_poll_interval($r[0]['priority']), '$lastupdtext' => t('Last updated: '), -- cgit v1.2.3