X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fevent.php;h=8aef0a263613cd8db9afaadf8cfa34361e9cec3d;hb=28df35052a452ad992ad8d67cffbfa380759e414;hp=29202baddf982417cdf3decedc3f0b69be539dc8;hpb=4cd3d5cd0247cb758fd24521b46540c60076af56;p=friendica.git diff --git a/include/event.php b/include/event.php old mode 100755 new mode 100644 index 29202baddf..8aef0a2636 --- a/include/event.php +++ b/include/event.php @@ -12,6 +12,9 @@ function format_event_html($ev) { $o = '
' . "\r\n"; + + $o .= '

' . bbcode($ev['summary']) . '

' . "\r\n"; + $o .= '

' . bbcode($ev['desc']) . '

' . "\r\n"; $o .= '

' . t('Starts:') . ' ' . xmlify($uri) . ''; + $item_arr['object'] = '' . xmlify(ACTIVITY_OBJ_EVENT) . '' . xmlify($arr['uri']) . ''; $item_arr['object'] .= '' . xmlify(format_event_bbcode($event)) . ''; $item_arr['object'] .= '' . "\n"; @@ -383,6 +398,8 @@ function event_store($arr) { ); } + call_hooks("event_created", $event['id']); + return $item_id; } }