aboutsummaryrefslogtreecommitdiffstats
path: root/mod/display.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-25 17:46:25 -0800
committerFriendika <info@friendika.com>2010-12-25 17:46:25 -0800
commitb211adfb1290913e11cc77bdd86b733b1f772519 (patch)
tree28e89dff96df1769aa3405e1552752a6df545268 /mod/display.php
parent38574789554b1e2737359b62b2350c7300d83888 (diff)
downloadvolse-hubzilla-b211adfb1290913e11cc77bdd86b733b1f772519.tar.gz
volse-hubzilla-b211adfb1290913e11cc77bdd86b733b1f772519.tar.bz2
volse-hubzilla-b211adfb1290913e11cc77bdd86b733b1f772519.zip
more hooks
Diffstat (limited to 'mod/display.php')
-rw-r--r--mod/display.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/display.php b/mod/display.php
index 990d0b431..fd845e608 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -241,7 +241,7 @@ function display_content(&$a) {
$indent .= ' shiny';
- $o .= replace_macros($template,array(
+ $tmp_item = replace_macros($template,array(
'$id' => $item['item_id'],
'$profile_url' => $profile_link,
'$name' => $profile_name,
@@ -264,6 +264,12 @@ function display_content(&$a) {
'$comment' => $comment
));
+ $arr = array('item' => $item, 'output' => $tmp_item);
+ call_hooks('display_item', $arr);
+
+ $o .= $arr['output'];
+
+
}
}
else {