Activity stream
The activity stream is called the river in Elgg. Adding an item to the river is accomplished through a call to add_to_river()
:
add_to_river('river/object/file/create', 'create', elgg_get_logged_in_user_guid(), $file->guid);
The first parameter is the name of the view used to display the river item. The view must exist before an item can be added.
Code location
Functions: /engine/lib/river.php
Example action: /mod/pages/actions/pages/edit.php
Example view: /mod/pages/views/default/river/object/page/create.php