name)); $dbprefix = elgg_get_config('dbprefix'); $options = array( 'relationship' => 'friend', 'relationship_guid' => $owner->getGUID(), 'inverse_relationship' => true, 'type' => 'user', 'joins' => array("JOIN {$dbprefix}users_entity ue ON e.guid = ue.guid"), 'order_by' => 'ue.name ASC', 'full_view' => false, 'no_results' => elgg_echo('friends:none'), ); $content = elgg_list_entities_from_relationship($options); if (!$content) { $content = elgg_echo('friends:none'); } $params = array( 'content' => $content, 'title' => $title, ); $body = elgg_view_layout('one_sidebar', $params); echo elgg_view_page($title, $body);