function tripal_update_views_integration

2.x tripal_views.api.inc tripal_update_views_integration($setup_id, $defn_array)
3.x tripal_chado_views.api.inc tripal_update_views_integration($setup_id, $defn_array)

Update an existing Views Intregration Entry. This essentially removes and then re-adds the integration.

Parameters

$setup_id: The setup ID of the views integration entry to update

$defn_array: An array describing the structure and fields of the table as is used in tripal_add_views_integration().

Related topics

1 call to tripal_update_views_integration()
1 string reference to 'tripal_update_views_integration'

File

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

Code

function tripal_update_views_integration($setup_id, $defn_array) {

  tripal_remove_views_integration(array('setup_id' => $setup_id));

  $defn_array['additional_content'] = TRUE;
  tripal_add_views_integration($defn_array, $setup_id);
}