protected function space_taxonomy::router_term in Spaces 7
Same name and namespace in other branches
- 6.3 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::router_term()
- 7.3 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::router_term()
Router helper with logic for individual taxonomy terms.
1 call to space_taxonomy::router_term()
- space_taxonomy::router in spaces_taxonomy/
plugins/ space_taxonomy.inc - Override of router().
File
- spaces_taxonomy/
plugins/ space_taxonomy.inc, line 69
Class
- space_taxonomy
- Taxonomy integration for Spaces.
Code
protected function router_term($term) {
if ($term->vocabulary_machine_name == variable_get('spaces_taxonomy_machine_name', 0)) {
$space = spaces_load('taxonomy', $term->tid);
// If there is no active taxonomy space or the spaces do not match, activate this term's space.
if ($space && (!$this->active || $this->id != $space->id)) {
$space
->activate();
}
}
}