function tripal_rebuild_views_integrations

2.x tripal_views.api.inc tripal_rebuild_views_integrations($delete_first = FALSE)

Rebuilds all the default integrations.

This essentially clears the cache in case you mess up the integrations in your site. This should not be used during module development since it really only rebuilds the integrations described by all enabled modules in the site and if $delete_first is TRUE it can delete custom integrations created by site administrators which will not make your module popular.

Parameters

$delete_first: If TRUE then all integrations are first deleted.

Related topics

3 calls to tripal_rebuild_views_integrations()
tripal_views_init in tripal_views/tripal_views.module
Implements hook_init().
tripal_views_integration_delete_all_form_submit in tripal_views/includes/tripal_views_integration_UI.inc
Purpose: Deletes ALL Tripal Views Integrations. This function is meant to be called from a menu item. After completion it redirects the user to the views intergation page.
tripal_views_rebuild_views_integrations in tripal_views/api/tripal_views.DEPRECATED.inc
1 string reference to 'tripal_rebuild_views_integrations'

File

tripal_views/api/tripal_views.api.inc, line 559
API functions for Tripal Views Integration

Code

function tripal_rebuild_views_integrations($delete_first = FALSE) {

  if ($delete_first) {
    tripal_views_delete_all_integrations();
  }

  tripal_views_integrate_all_chado_tables();

  // TODO: the function above should have a return value from which we can
  // determine if the message below is approprite.
  drupal_set_message('Successfully rebuilt default Tripal Views Integrations');
}