function tripal_views_integration_delete

2.x tripal_views_integration_UI.inc tripal_views_integration_delete($setup_id)
1.x tripal_views_integration.inc tripal_views_integration_delete($setup_id)

Purpose: Deletes integration of a table with the Views module. This function is meant to be called from a menu item. After completion it redirects the user to the views intergation page.

Parameters

$setup_id: the unique setup id for the integrated table

1 string reference to 'tripal_views_integration_delete'
tripal_views_menu in tripal_views/tripal_views.module
Implements hook_menu()

File

tripal_views/includes/tripal_views_integration.inc, line 131
Functions related to the UI for integrating tables with views

Code

function tripal_views_integration_delete($setup_id) {

  tripal_views_integration_remove_entry_by_setup_id($setup_id);
  drupal_set_message(t("Record Deleted"));
  drupal_goto('admin/tripal/views/integration');

}