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