12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- function tripal_genetic_views_data() {
- $data = array();
- if (module_exists('tripal_views')) {
- $tables = array(
- 'environment',
- 'genotype',
- 'phenstatement'
- );
- foreach ($tables as $tablename) {
- if (!tripal_views_is_integrated($tablename, 10)) {
- $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE);
- tripal_views_integration_add_entry($table_integration_array);
- }
- }
- $tables = array(
- 'environment_cvterm',
- 'feature_genotype',
- 'phendesc',
- 'phenotype_comparison'
- );
- foreach ($tables as $tablename) {
- if (!tripal_views_is_integrated($tablename, 10)) {
- $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE);
- tripal_views_integration_add_entry($table_integration_array);
- }
- }
- }
- return $data;
- }
- function tripal_genetic_views_handlers() {
- return array(
- 'info' => array(
- 'path' => drupal_get_path('module', 'tripal_genetic') . '/views/handlers',
- ),
- 'handlers' => array(
- ),
- );
- }
|