Chado Views Integration

Provides API functions that support direct integration of Chado tables with Drupal Views. This is different from the entity and field integration that Tripal v3 provides. Here Chado tables are directly integrated. Tripal provides a web interface that allows site developers to customize how a Chado table is integrate with Views. However, these functions provide programmatic access to the same functionality.

Parent topics

File

tripal_chado_views/api/tripal_chado_views.api.inc, line 7
Provides API functions that support direct integration of Chado tables with Drupal Views.

Functions

Namesort descending Location Description
tripal_add_field_to_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Adds the given field to an existing or cloned integration. In the case of a cloned integration, the lightest integration is used as the template for the clone.
tripal_add_join_to_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Adds the given field to an existing or cloned integration. In the case of a cloned integration, the lightest integration is used as the template for the clone.
tripal_add_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Add views integration records into the tripal_views* tables.
tripal_clone_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Clone an integration. This is often a great way to create your own module-specific integration while still benifiting from an existing (or even the lightest priority) integration.
tripal_disable_view tripal_chado_views/api/tripal_chado_views.api.inc Programatically disable view.
tripal_enable_view tripal_chado_views/api/tripal_chado_views.api.inc Programatically enable view
tripal_export_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Export Views integration records.
tripal_get_lightest_views_integration_priority tripal_chado_views/api/tripal_chado_views.api.inc Retrieve the priority of the lightest priority for a given table.
tripal_get_lightest_views_integration_setup tripal_chado_views/api/tripal_chado_views.api.inc Retrieve the views integration setup_id with the lightest priority for a given table
tripal_get_views_integration_setup_id tripal_chado_views/api/tripal_chado_views.api.inc Retrieve the views integration setup_id with the given priority/table combination.
tripal_is_lightest_priority_setup tripal_chado_views/api/tripal_chado_views.api.inc Checks if you are dealing with the lightest priority setup for a given table. This is a good way to determine whether your modules integration is being used by views.
tripal_is_table_integrated tripal_chado_views/api/tripal_chado_views.api.inc Check to see if this table already has an integration record with the given priority.
tripal_make_view_compatible_with_external tripal_chado_views/api/tripal_chado_views.api.inc Remove any drupal fields from a chado-based default view definition if chado is external. This ensures compatibility with an external chado database.
tripal_rebuild_views_integrations tripal_chado_views/api/tripal_chado_views.api.inc Rebuilds all the default integrations.
tripal_remove_join_from_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Remove a join from an integration. This is usually done after cloning an existing integration using tripal_clone_views_integration().
tripal_remove_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Removes a View Integration Entry when you only know the table the integration was created for and the priority.
tripal_update_views_integration tripal_chado_views/api/tripal_chado_views.api.inc Update an existing Views Intregration Entry. This essentially removes and then re-adds the integration.