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
Name | Location | Description |
---|---|---|
tripal_update_views_integration |
tripal_chado_views/ |
Update an existing Views Intregration Entry. This essentially removes and then re-adds the integration. |
tripal_remove_views_integration |
tripal_chado_views/ |
Removes a View Integration Entry when you only know the table the integration was created for and the priority. |
tripal_remove_join_from_views_integration |
tripal_chado_views/ |
Remove a join from an integration. This is usually done after cloning an existing integration using tripal_clone_views_integration(). |
tripal_rebuild_views_integrations |
tripal_chado_views/ |
Rebuilds all the default integrations. |
tripal_make_view_compatible_with_external |
tripal_chado_views/ |
Remove any drupal fields from a chado-based default view definition if chado is external. This ensures compatibility with an external chado database. |
tripal_is_table_integrated |
tripal_chado_views/ |
Check to see if this table already has an integration record with the given priority. |
tripal_is_lightest_priority_setup |
tripal_chado_views/ |
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_get_views_integration_setup_id |
tripal_chado_views/ |
Retrieve the views integration setup_id with the given priority/table combination. |
tripal_get_lightest_views_integration_setup |
tripal_chado_views/ |
Retrieve the views integration setup_id with the lightest priority for a given table |
tripal_get_lightest_views_integration_priority |
tripal_chado_views/ |
Retrieve the priority of the lightest priority for a given table. |
tripal_export_views_integration |
tripal_chado_views/ |
Export Views integration records. |
tripal_enable_view |
tripal_chado_views/ |
Programatically enable view |
tripal_disable_view |
tripal_chado_views/ |
Programatically disable view. |
tripal_clone_views_integration |
tripal_chado_views/ |
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_add_views_integration |
tripal_chado_views/ |
Add views integration records into the tripal_views* tables. |
tripal_add_join_to_views_integration |
tripal_chado_views/ |
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_field_to_views_integration |
tripal_chado_views/ |
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. |