function tripal_project_disable

2.x tripal_project.install tripal_project_disable()
3.x tripal_project.install tripal_project_disable()

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

Related topics

File

legacy/tripal_project/tripal_project.install, line 13
Install the tripal project

Code

function tripal_project_disable() {

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

}