function lineage_views_tables in Taxonomy Lineage 5
File
- ./
lineage.module, line 93
Code
function lineage_views_tables() {
$tables['term_lineage'] = array(
"name" => "term_lineage",
"join" => array(
"left" => array(
"table" => "term_node",
"field" => "tid",
),
"right" => array(
"field" => "tid",
),
),
"fields" => array(
"lineage" => array(
'name' => "Lineage: Taxonomy Hierarchy",
'sortable' => true,
'handler' => 'lineage_view_handler',
),
"depth" => array(
'name' => "Lineage: Depth",
'sortable' => false,
),
),
"sorts" => array(
"lineage" => array(
'name' => "Lineage: Taxonomy Hierarchy",
),
),
);
return $tables;
}