]> git.mxchange.org Git - friendica.git/commitdiff
added prepare_body hooks
authorFriendika <info@friendika.com>
Wed, 5 Oct 2011 09:35:25 +0000 (02:35 -0700)
committerFriendika <info@friendika.com>
Wed, 5 Oct 2011 09:35:25 +0000 (02:35 -0700)
include/text.php

index 656cd8809c927dc1f42ccec54825c94a0ece6686..701c1e41b6352c887df78f499c98c44018742b2b 100644 (file)
@@ -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;
 }}