function tripal_cv_disable

2.x tripal_cv.install tripal_cv_disable()
3.x tripal_cv.install tripal_cv_disable()

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

Related topics

File

legacy/tripal_cv/tripal_cv.install, line 14
Contains functions executed only on install/uninstall of this module

Code

function tripal_cv_disable() {

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

}