OnCommunityStreamRender

Revision as of 22:27, 24 April 2013 by Sinisakrisan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Since JomSocial 2.8
Note: This article is still work in progress

Used in the standard community plugin to gather data for creating activity stream item
More information and full guide can be seen here

Example

    class plgCommunityExample extends CApplications
    {
    public function onCommunityStreamRender($act)
    {
    $actor = CFactory::getUser($act->actor);
 
    $stream = new stdClass();
    $stream->actor = $actor;
    $stream->headline = 'Headline';
    $stream->message = 'Message';
    return $stream;
    }
    }