function tripal_phylogeny_integrate_view
2.x tripal_phylogeny.install | tripal_phylogeny_integrate_view() |
3.x tripal_phylogeny.install | tripal_phylogeny_integrate_view() |
1 call to tripal_phylogeny_integrate_view()
- tripal_phylogeny_install in legacy/
tripal_phylogeny/ tripal_phylogeny.install - Implements hook_install().
File
- legacy/
tripal_phylogeny/ tripal_phylogeny.install, line 208 - Installation of the phylotree module
Code
function tripal_phylogeny_integrate_view() {
$integration = array(
'table' => 'phylotree_count',
'name' => 'phylotree_count',
'type' => 'chado',
'description' => '',
'priority' => '-1',
'base_table' => '1',
'fields' => array(
'phylotree_phylotree_id' => array(
'name' => 'phylotree_phylotree_id',
'title' => 'Phylotree ID',
'description' => 'Phylotree ID',
'type' => 'int',
'handlers' => array(
'filter' => array(
'name' => 'views_handler_filter_numeric'
),
'field' => array(
'name' => 'views_handler_field_numeric'
),
'sort' => array(
'name' => 'views_handler_sort'
),
'argument' => array(
'name' => 'views_handler_argument_numeric'
),
'relationship' => array(
'name' => 'views_handler_relationship'
)
),
'joins' => array()
),
'phylotree_name' => array(
'name' => 'phylotree_name',
'title' => 'Family ID',
'description' => 'Family ID',
'type' => 'text',
'handlers' => array(
'filter' => array(
'name' => 'tripal_views_handler_filter_select_string'
),
'field' => array(
'name' => 'views_handler_field'
),
'sort' => array(
'name' => 'views_handler_sort'
),
'argument' => array(
'name' => 'views_handler_argument_string'
),
'relationship' => array(
'name' => 'views_handler_relationship'
)
),
'joins' => array()
),
'phylotree_comment' => array(
'name' => 'phylotree_comment',
'title' => 'Description',
'description' => 'Description',
'type' => 'text',
'handlers' => array(
'filter' => array(
'name' => 'tripal_views_handler_filter_select_string'
),
'field' => array(
'name' => 'views_handler_field'
),
'sort' => array(
'name' => 'views_handler_sort'
),
'argument' => array(
'name' => 'views_handler_argument_string'
),
'relationship' => array(
'name' => 'views_handler_relationship'
)
),
'joins' => array()
),
'total_count' => array(
'name' => 'total_count',
'title' => 'Total count',
'description' => 'Total count',
'type' => 'int',
'handlers' => array(
'filter' => array(
'name' => 'views_handler_filter_numeric'
),
'field' => array(
'name' => 'views_handler_field'
),
'sort' => array(
'name' => 'views_handler_sort'
),
'argument' => array(
'name' => 'views_handler_argument_numeric'
),
'relationship' => array(
'name' => 'views_handler_relationship'
)
),
'joins' => array()
)
)
);
// Add the array above that will integrate our qtl_search materialized view
// for use with Drupal Views.
tripal_add_views_integration($integration);
}