aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-29 15:52:31 -0700
committerFriendika <info@friendika.com>2011-09-29 15:52:31 -0700
commitc1221cc052c78550c214e7974407cc66992eadbe (patch)
tree7040e1a92ae14b91290915801ad47f1d68bf0bec /include/conversation.php
parentbc98930537a4029b805c754415762d840c157b34 (diff)
downloadvolse-hubzilla-c1221cc052c78550c214e7974407cc66992eadbe.tar.gz
volse-hubzilla-c1221cc052c78550c214e7974407cc66992eadbe.tar.bz2
volse-hubzilla-c1221cc052c78550c214e7974407cc66992eadbe.zip
add display_item hook to 'search|new' message display
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ebe582f4c..6069afb03 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -220,7 +220,7 @@ function conversation(&$a, $items, $mode, $update) {
$body = prepare_body($item,true);
- $treads[$treadsid] .= replace_macros($tpl,array(
+ $tmp_item = replace_macros($tpl,array(
'$id' => $item['item_id'],
'$linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
'$profile_url' => $profile_link,
@@ -251,6 +251,11 @@ function conversation(&$a, $items, $mode, $update) {
'$wait' => t('Please wait'),
));
+ $arr = array('item' => $item, 'output' => $tmp_item);
+ call_hooks('display_item', $arr);
+
+ $treads[$treadsid] .= $arr['output'];
+
}
}