function tripal_phylogeny_uninstall

2.x tripal_phylogeny.install tripal_phylogeny_uninstall()
3.x tripal_phylogeny.install tripal_phylogeny_uninstall()

Implementation of hook_uninstall().

File

legacy/tripal_phylogeny/tripal_phylogeny.install, line 138
Installation of the phylotree module

Code

function tripal_phylogeny_uninstall() {

  // Drop the MView table if it exists
  $mview_id = tripal_get_mview_id('phylotree_count');
  if ($mview_id) {
    tripal_delete_mview($mview_id);
  }
  // Remove views integration.
  // Note: tripal_remove_views_intergration accepts table_name and priority in a key value form.
  $delete_view = array(
    'table_name' => 'phylotree_count',
    'priority' => '-1',
  );
  tripal_remove_views_integration($delete_view);

}