function tripal_pub_disable

2.x tripal_pub.install tripal_pub_disable()
3.x tripal_pub.install tripal_pub_disable()

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

Related topics

File

tripal_pub/tripal_pub.install, line 13
Installation of the publication module

Code

function tripal_pub_disable() {

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

}