tripal_phenotype.install

  1. 2.x tripal_phenotype/tripal_phenotype.install
  2. 3.x legacy/tripal_phenotype/tripal_phenotype.install

Installation of the phenotype module

File

tripal_phenotype/tripal_phenotype.install
View source
  1. <?php
  2. /**
  3. * @file
  4. * Installation of the phenotype module
  5. */
  6. /**
  7. * Implements hook_disable().
  8. * Disable default views when module is disabled
  9. *
  10. * @ingroup tripal_phenotype
  11. */
  12. function tripal_phenotype_disable() {
  13. // Disable all default views provided by this module
  14. require_once("tripal_phenotype.views_default.inc");
  15. $views = tripal_phenotype_views_default_views();
  16. foreach (array_keys($views) as $view_name) {
  17. tripal_disable_view($view_name,FALSE,array('suppress_error' => TRUE));
  18. }
  19. }