From b211adfb1290913e11cc77bdd86b733b1f772519 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 25 Dec 2010 17:46:25 -0800 Subject: more hooks --- mod/profile.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mod/profile.php') diff --git a/mod/profile.php b/mod/profile.php index ffc412805..cc0debd99 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -342,7 +342,7 @@ function profile_content(&$a, $update = 0) { if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0) $indent .= ' shiny'; - $o .= replace_macros($template,array( + $tmp_item = replace_macros($template,array( '$id' => $item['item_id'], '$profile_url' => $profile_link, '$name' => $profile_name, @@ -360,6 +360,11 @@ function profile_content(&$a, $update = 0) { '$dislike' => $dislike, '$comment' => $comment )); + + $arr = array('item' => $item, 'output' => $tmp_item); + call_hooks('display_item', $arr); + + $o .= $arr['output']; } } -- cgit v1.2.3