aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-05 02:35:25 -0700
committerFriendika <info@friendika.com>2011-10-05 02:35:25 -0700
commit924d4193789217dadbddf8e0dddb960a2988136c (patch)
treebf01a630d144e6a41bbeac867f85fd630cff4e0d /include/text.php
parent6c521017f5e58432d0eaadb90d0745fe7c4f1472 (diff)
downloadvolse-hubzilla-924d4193789217dadbddf8e0dddb960a2988136c.tar.gz
volse-hubzilla-924d4193789217dadbddf8e0dddb960a2988136c.tar.bz2
volse-hubzilla-924d4193789217dadbddf8e0dddb960a2988136c.zip
added prepare_body hooks
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 656cd8809..701c1e41b 100644
--- a/include/text.php
+++ b/include/text.php
@@ -744,7 +744,12 @@ function link_compare($a,$b) {
if(! function_exists('prepare_body')) {
function prepare_body($item,$attach = false) {
+ call_hooks('prepare_body_init', $item);
+
$s = prepare_text($item['body']);
+
+ call_hooks('prepare_body', $s);
+
if(! $attach)
return $s;
@@ -776,6 +781,7 @@ function prepare_body($item,$attach = false) {
}
$s .= '<div class="clear"></div></div>';
}
+ call_hooks('prepare_body_final', $s);
return $s;
}}