You are here

public function SiteActivity::viewsQueryAlter in Heartbeat 7

Function to add a part of a sql to a query built by views.

Parameters

object $view: The view handler object by reference to add our part to the query

Overrides HeartbeatStream::viewsQueryAlter

File

modules/heartbeat_defaults/streams/siteactivity.inc, line 30
Public heartbeat activity access object

Class

SiteActivity
Class PublicHeartbeat Concrete class to prepare messages for all users in the site of whom the heartbeat is set to public

Code

public function viewsQueryAlter(&$view) {
  $views->query
    ->condition('ha.access', 0, '>=');
}