You are here

protected function NodeActivity::queryAlter in Heartbeat 7

Implements queryAlter().

Overrides HeartbeatStream::queryAlter

File

modules/heartbeat_defaults/streams/nodeactivity.inc, line 63

Class

NodeActivity
Class NodeActivity Stream with all activity related to nodes.

Code

protected function queryAlter() {
  $this->query
    ->condition('ha.access', 0, '>')
    ->condition(db_or()
    ->condition('ha.nid', $this->nid)
    ->condition('ha.nid_target', $this->nid));
}