function tripal_example_disable

2.x tripal_example.install tripal_example_disable()

Implements hook_disable().

Perform actions when the module is disabled by the site administrator

File

tripal_example/tripal_example.install, line 14
Installation of the example module

Code

function tripal_example_disable() {

  // EXPLANATION: If you are using Drupal Views you want to ensure that any
  // default views that your module provides are disabled when the module is
  // disabled. Default views are specified in the
  // [module name].views.default.inc file. The following code will disable these
  // views. If your module does not create any default views you can remove the
  // following code.

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

}