aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/profile/views/default/profile/listing.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/listing.php b/mod/profile/views/default/profile/listing.php
index 3b322f799..6ec180051 100644
--- a/mod/profile/views/default/profile/listing.php
+++ b/mod/profile/views/default/profile/listing.php
@@ -26,6 +26,15 @@
$info .= "<p>" . elgg_echo("profile:location") . ": " . elgg_view("output/tags",array('value' => $vars['entity']->location)) . "</p>";
}
+ //grab the users status message with metadata 'state' set to current if one exists
+ if($get_status = get_entities_from_metadata("state", "current", "object", "status", $vars['entity']->guid)){
+
+ foreach($get_status as $s) {
+ $info .= elgg_view("status/friends_view", array('entity' => $s));
+ }
+
+ }
+
echo elgg_view_listing($icon, $info);
?> \ No newline at end of file