mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
added prepare_body hooks
This commit is contained in:
parent
6c521017f5
commit
924d419378
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue