You are here

function space_og::__construct in Spaces 7.3

Constructor.

Overrides space::__construct

File

spaces_og/plugins/space_og.inc, line 12

Class

space_og
Organic groups integration for Spaces.

Code

function __construct($type, $id = NULL) {
  parent::__construct($type, $id);

  // Extend spaces object with og entity.
  $this->og = og_get_group('node', $this->id);
}