You are here

function space_taxonomy::views_filter in Spaces 7.3

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

Override of views_filter().

Overrides space_type::views_filter

File

spaces_taxonomy/plugins/space_taxonomy.inc, line 71

Class

space_taxonomy
Taxonomy integration for Spaces.

Code

function views_filter(&$query, $base_table = '', $relationship = '') {
  switch ($base_table) {
    case 'node':
      $table = $query
        ->ensure_table('taxonomy_index', $relationship);
      $query
        ->add_where(0, "{$table}.tid", $this->id);
      break;
  }
}