You are here

function data_taxonomy_views_data_alter in Data 6

Implementation of hook_views_data_alter().

Expose node table fields/filters for terms as base table. @todo This really doesn't belong here.

File

data_taxonomy/views/data_taxonomy.views.inc, line 94
Views hooks.

Code

function data_taxonomy_views_data_alter(&$data) {
  $data['node']['table']['join']['term_node'] = array(
    'left_table' => 'term_node',
    'left_field' => 'nid',
    'field' => 'nid',
  );
}