function tripal_rebuild_views_integrations
2.x tripal_views.api.inc | tripal_rebuild_views_integrations($delete_first = FALSE) |
3.x tripal_chado_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_chado_views_init in tripal_chado_views/
tripal_chado_views.module - Implements hook_init().
- tripal_chado_views_integration_delete_all_form_submit in tripal_chado_views/
includes/ tripal_chado_views_integration_UI.inc - Purpose: Deletes ALL Chado 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_chado_views_rebuild_views_integrations in tripal_chado_views/
api/ tripal_chado_views.DEPRECATED.inc
1 string reference to 'tripal_rebuild_views_integrations'
- tripal_chado_views_rebuild_views_integrations in tripal_chado_views/
api/ tripal_chado_views.DEPRECATED.inc
File
- tripal_chado_views/
api/ tripal_chado_views.api.inc, line 422 - Provides API functions that support direct integration of Chado tables with Drupal Views.
Code
function tripal_rebuild_views_integrations($delete_first = FALSE) {
if ($delete_first) {
tripal_chado_views_delete_all_integrations();
}
tripal_chado_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 Chado Views Integrations');
}