Tripal v1.0 (6.x-1.0)
|
Go to the source code of this file.
Functions | |
tripal_genetic_views_data () | |
tripal_genetic_views_handlers () | |
tripal_genetic_views_default_views () |
This file contains the basic functions for views integration of chado/tripal_genetic tables. Supplementary functions can be found in ./views/
Documentation on views integration can be found at http://views2.logrus.com/doc/html/index.html.
Definition in file tripal_genetic.views.inc.
tripal_genetic_views_data | ( | ) |
Definition at line 28 of file tripal_genetic.views.inc.
{ $data = array(); if (module_exists('tripal_views')) { $tables = array( 'environment', 'genotype', 'phenstatement' ); foreach ($tables as $tablename) { $priority = 9; // check to see if the table is integrated. If it is then integrate it's // corresponding 'chado_[table]' table. if (!tripal_views_is_integrated($tablename, $priority)) { $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE, $priority); $status = tripal_views_integration_add_entry($table_integration_array); if (!$status) { drupal_set_message(t('Tripal Genetic is unable to integrate %table', array('%table' => $tablename)), 'error'); } } } $tables = array( 'environment_cvterm', 'feature_genotype', 'phendesc', 'phenotype_comparison' ); foreach ($tables as $tablename) { $priority = 9; if (!tripal_views_is_integrated($tablename, $priority)) { $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, FALSE, $priority); $status = tripal_views_integration_add_entry($table_integration_array); if (!$status) { drupal_set_message(t('Tripal Genetic is unable to integrate %table', array('%table' => $tablename)), 'error'); } } } } return $data; }
tripal_genetic_views_handlers | ( | ) |
Definition at line 80 of file tripal_genetic.views.inc.
{ return array( 'info' => array( 'path' => drupal_get_path('module', 'tripal_genetic') . '/views/handlers', ), 'handlers' => array( ), ); }