function tripal_chado_views_integration_delete

3.x tripal_chado_views_integration_UI.inc tripal_chado_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

Related topics

1 string reference to 'tripal_chado_views_integration_delete'
tripal_chado_views_menu in tripal_chado_views/tripal_chado_views.module
Implements hook_menu(). This hook provides details about new menu items added by this module

File

tripal_chado_views/includes/tripal_chado_views_integration_UI.inc, line 132
Functions related to the UI for integrating tables with views

Code

function tripal_chado_views_integration_delete($setup_id) {

  tripal_remove_views_integration(array('setup_id' => ($setup_id)));
  drupal_set_message(t("Record Deleted"));
  drupal_goto('admin/tripal/storage/chado/views-integration');

}