From b211adfb1290913e11cc77bdd86b733b1f772519 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 25 Dec 2010 17:46:25 -0800 Subject: more hooks --- mod/display.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mod/display.php') 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 { -- cgit v1.2.3