You are here

function space_taxonomy::views_filter in Spaces 6.3

Same name and namespace in other branches
  1. 7.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 78

Class

space_taxonomy
Taxonomy integration for Spaces.

Code

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