function tripal_views_integrate_all_chado_tables

2.x tripal_views_integration.inc tripal_views_integrate_all_chado_tables()
1.x tripal_views.api.inc tripal_views_integrate_all_chado_tables()

Integrate all chado tables in the schema api. This integration only occurs once and sets all Chado tables to a priority of 10

Related topics

2 calls to tripal_views_integrate_all_chado_tables()

File

tripal_views/api/tripal_views.api.inc, line 472
API functions for Tripal Views Integration

Code

function tripal_views_integrate_all_chado_tables() {

  $tables = tripal_core_get_chado_tables(TRUE);
  foreach ($tables as $tablename) {

    $priority = 10;
    if (!tripal_views_is_integrated($tablename, $priority)) {
      $table_integration_array = tripal_views_get_integration_array_for_chado_table($tablename, TRUE, $priority);
      if ($table_integration_array) {
        tripal_views_integration_add_entry($table_integration_array);
      }
    }
  }
}