You are here

function space_taxonomy::load in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::load()
  2. 7 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::load()

Override of load().

Overrides space::load

File

spaces_taxonomy/plugins/space_taxonomy.inc, line 19

Class

space_taxonomy
Taxonomy integration for Spaces.

Code

function load() {

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