aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/profile_lib.php
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-29 13:12:24 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-29 13:12:24 +0000
commita7add808c43b0758a90791359bed0c075b0c35e6 (patch)
treed9a752f5caa5503fc484a06d3e973173be1b1b1a /mod/profile/profile_lib.php
parentb77d118819ec7b31a399326c166a3681fb20d9da (diff)
downloadelgg-a7add808c43b0758a90791359bed0c075b0c35e6.tar.gz
elgg-a7add808c43b0758a90791359bed0c075b0c35e6.tar.bz2
simple comment wall added to profiles
git-svn-id: http://code.elgg.org/elgg/trunk@5537 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/profile_lib.php')
-rw-r--r--mod/profile/profile_lib.php5
1 files changed, 4 insertions, 1 deletions
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;