function tripal_views_delete_all_integrations

2.x tripal_views_integration.inc tripal_views_delete_all_integrations()

Purpose: Deletes ALL Tripal Views Integrations.

Related topics

1 call to tripal_views_delete_all_integrations()
tripal_rebuild_views_integrations in tripal_views/api/tripal_views.api.inc
Rebuilds all the default integrations.

File

tripal_views/includes/tripal_views_integration.inc, line 12
Contains functions used to manage tripal views integrations

Code

function tripal_views_delete_all_integrations() {

  db_query("DELETE FROM {tripal_views}");
  db_query("DELETE FROM {tripal_views_field}");
  db_query("DELETE FROM {tripal_views_handlers}");
  db_query("DELETE FROM {tripal_views_join}");

  drupal_set_message("Successfully deleted all views integration.");

}