1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- function tripal_pub_views_data() {
- $data = array();
- if (module_exists('tripal_views')) {
- $tables = array(
- 'pub'
- );
- 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(
- 'pub_dbxref',
- 'pub_relationship',
- 'pubauthor',
- 'pubprop'
- );
- 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_pub_views_handlers() {
- return array(
- 'info' => array(
- 'path' => drupal_get_path('module', 'tripal_pub') . '/views/handlers',
- ),
- 'handlers' => array(
- ),
- );
- }
|