You are here

protected function GroupActivity::queryAlter in Heartbeat 7

Implementation of queryAlter().

Overrides HeartbeatStream::queryAlter

File

modules/heartbeat_og/streams/groupactivity.inc, line 78
Defines a stream for Group Activity.

Class

GroupActivity
Concrete class GroupActivity Defines a stream for activity within a group.

Code

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