From a7add808c43b0758a90791359bed0c075b0c35e6 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 29 Mar 2010 13:12:24 +0000 Subject: simple comment wall added to profiles git-svn-id: http://code.elgg.org/elgg/trunk@5537 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/profile_lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/profile/profile_lib.php') diff --git a/mod/profile/profile_lib.php b/mod/profile/profile_lib.php index 7e092c003..993985279 100644 --- a/mod/profile/profile_lib.php +++ b/mod/profile/profile_lib.php @@ -29,7 +29,10 @@ function profile_get_user_profile_html($user, $section = 'activity') { case 'twitter': $body .= elgg_view('profile/profile_contents/twitter', $view_options); break; - + case 'commentwall': + $comments = $user->getAnnotations('commentwall', 200, 0, 'desc'); + $body .= elgg_view('profile/profile_contents/commentwall', array("entity" => $user, "comments" => $comments)); + break; case 'details': $body .= elgg_view('profile/profile_contents/details', $view_options); break; -- cgit v1.2.3