function tripal_update_views_integration

2.x tripal_update_views_integration($setup_id, $defn_array)

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


$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'


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


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);