function tripal_organism_disable

2.x tripal_organism.install tripal_organism_disable()
3.x tripal_organism.install tripal_organism_disable()

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

Related topics

File

legacy/tripal_organism/tripal_organism.install, line 13
Functions pertaining to the install/uninstall of this module

Code

function tripal_organism_disable() {

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

}