function heartbeat_stream_view in Heartbeat 7
Same name and namespace in other branches
- 6.4 heartbeat.module \heartbeat_stream_view()
Views a heartbeat stream.
5 calls to heartbeat_stream_view()
- heartbeat_activity_older in ./
heartbeat.pages.inc - JavaScript callback to load older messages.
- heartbeat_activity_poll in ./
heartbeat.pages.inc - Callback to poll for newer messages. Each stream is displayed within a context.
- heartbeat_block_view in ./
heartbeat.module - Implements hook_block_view().
- heartbeat_messages_page in ./
heartbeat.pages.inc - Page callback function to load an activity stream page
- heartbeat_message_activity in ./
heartbeat.pages.inc - Page callback for one activity message.
File
- ./
heartbeat.streams.inc, line 71
Code
function heartbeat_stream_view(HeartbeatStream &$heartbeatStream, $view_mode = NULL) {
if (isset($view_mode)) {
$heartbeatStream
->setViewMode($view_mode);
}
$build = $heartbeatStream
->render();
return $build;
}