You are here

function space_og::load in Spaces 7

Same name and namespace in other branches
  1. 6.3 spaces_og/plugins/space_og.inc \space_og::load()
  2. 7.3 spaces_og/plugins/space_og.inc \space_og::load()

Override of load().

Overrides space::load

File

spaces_og/plugins/space_og.inc, line 38

Class

space_og
Organic groups integration for Spaces.

Code

function load() {

  // The 0 id means a new group is being saved. Instantiate a space
  // so preset values can become active.
  if ($this->id === 0) {
    return TRUE;
  }
  else {
    if ($this->group = node_load($this->id)) {
      return TRUE;
    }
  }
  return FALSE;
}