function space_taxonomy::load in Spaces 7
Same name and namespace in other branches
- 6.3 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::load()
- 7.3 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_term_load($this->id)) {
return TRUE;
}
}
return FALSE;
}