You are here

private function GroupActivity::setGroup in Heartbeat 7

setGroup

Sets the group for a given node ID.

Parameters

Integer $nid: The group node ID.

1 call to GroupActivity::setGroup()
GroupActivity::detectGroup in modules/heartbeat_og/streams/groupactivity.inc
detectGroup

File

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

Class

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

Code

private function setGroup($nid) {
  $this->nid = $nid;

  // Add the node ID to the contextual arguments.
  $this->contextual_arguments['og_etid'] = $this->nid;

  // Load the group.
  $this->group = node_load($this->nid);
}