From 3b6b0eaa8ba8f59c70f66a6c92888f9ff2d5b41b Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 24 Oct 2011 15:47:17 -0700 Subject: social tag - add UI --- include/text.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index ca8dc5ac3..ba6c2531f 100644 --- a/include/text.php +++ b/include/text.php @@ -751,7 +751,9 @@ function prepare_body($item,$attach = false) { $s = prepare_text($item['body']); - call_hooks('prepare_body', $s); + $prep_arr = array('item' => $item, 'html' => $s); + call_hooks('prepare_body', $prep_arr); + $s = $prep_arr['html']; if(! $attach) return $s; @@ -784,8 +786,10 @@ function prepare_body($item,$attach = false) { } $s .= '
'; } - call_hooks('prepare_body_final', $s); - return $s; + + $prep_arr = array('item' => $item, 'html' => $s); + call_hooks('prepare_body_final', $prep_arr); + return $prep_arr['html']; }} -- cgit v1.2.3