You are here

protected function space_taxonomy::router_term in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_taxonomy/plugins/space_taxonomy.inc \space_taxonomy::router_term()
  2. 7 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 65

Class

space_taxonomy
Taxonomy integration for Spaces.

Code

protected function router_term($term) {
  if ($term->vid == variable_get('spaces_taxonomy_vid', 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();
    }
  }
}