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
Related topics
1 string reference to 'tripal_views_integration_delete'
- tripal_views_menu in tripal_views/
tripal_views.module - Implements hook_menu(). This hook provides details about new menu items added by this module
File
- tripal_views/
includes/ tripal_views_integration_UI.inc, line 132 - Functions related to the UI for integrating tables with views
Code
function tripal_views_integration_delete($setup_id) {
tripal_remove_views_integration(array('setup_id' => ($setup_id)));
drupal_set_message(t("Record Deleted"));
drupal_goto('admin/tripal/views-integration');
}