function tripal_feature_disable

2.x tripal_feature.install tripal_feature_disable()
3.x tripal_feature.install tripal_feature_disable()

Implements hook_disable().

Disable default views when module is disabled

File

legacy/tripal_feature/tripal_feature.install, line 14
Installation of the feature module

Code

function tripal_feature_disable() {

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

}