name)); $dbprefix = elgg_get_config('dbprefix'); $options = array( 'relationship' => 'friend', 'relationship_guid' => $owner->getGUID(), 'inverse_relationship' => false, '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); $params = array( 'content' => $content, 'title' => $title, ); $body = elgg_view_layout('one_sidebar', $params); echo elgg_view_page($title, $body);