X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fevent.php;h=8aef0a263613cd8db9afaadf8cfa34361e9cec3d;hb=1b82df60dbfe0a78d728e440042ca980cd3d9578;hp=4a9a9a0041e40ec6318070806ec9add4be990333;hpb=18679111f5aed8f1c5e7ccb9857195e52c57765d;p=friendica.git diff --git a/include/event.php b/include/event.php old mode 100755 new mode 100644 index 4a9a9a0041..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; } }