function tripal_stock_disable

2.x tripal_stock.install tripal_stock_disable()
3.x tripal_stock.install tripal_stock_disable()

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

Related topics

File

tripal_stock/tripal_stock.install, line 13
Install the tripal stock module including it's content type

Code

function tripal_stock_disable() {

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

}