function location_taxonomy_views_data in Location 6.3
Implementation of hook_views_data().
File
- contrib/
location_taxonomy/ location_taxonomy.views.inc, line 12 - Views 2 support for location taxonomy.
Code
function location_taxonomy_views_data() {
// Tell the base tables about us.
// location table.
// Location links to taxonomy terms via lid.
$data['location']['table']['join']['term_data'] = array(
'left_table' => 'location_instance',
'left_field' => 'lid',
'field' => 'lid',
);
// location_instance table.
$data['location_instance']['table']['join']['term_data'] = array(
'handler' => 'location_join_taxonomy',
'left_field' => 'tid',
'field' => 'genid',
);
// term_data table
$data['term_data']['table']['join']['location'] = array(
'handler' => 'location_join_taxonomy',
'left_table' => 'location_instance',
'left_field' => 'genid',
'field' => 'tid',
);
return $data;
}