function tripal_genetic_disable

2.x tripal_genetic.install tripal_genetic_disable()
3.x tripal_genetic.install tripal_genetic_disable()

Implements hook_disable(). Disable default views when module is disabled

File

legacy/tripal_genetic/tripal_genetic.install, line 13
Installation of the tripal genetic module

Code

function tripal_genetic_disable() {

  // Disable all default views provided by this module
  require_once ("tripal_genetic.views_default.inc");
  $views = tripal_genetic_views_default_views();
  foreach (array_keys($views) as $view_name) {
    tripal_disable_view($view_name, FALSE, array('suppress_error' => TRUE));
  }

}