tripal_db.install 866 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @file
  4. * Contains functions related to the installation of this module
  5. */
  6. /**
  7. * Implementation of hook_requirements().
  8. */
  9. function tripal_db_requirements($phase) {
  10. $requirements = array();
  11. if ($phase == 'install') {
  12. // make sure chado is installed
  13. if (!tripal_core_is_chado_installed()) {
  14. $requirements ['tripal_db'] = array(
  15. 'title' => "tripal_db",
  16. 'value' => "ERROR: Chado most be installed before this module can be enabled",
  17. 'severity' => REQUIREMENT_ERROR,
  18. );
  19. }
  20. }
  21. return $requirements;
  22. }
  23. /**
  24. * Implementation of hook_install().
  25. *
  26. * @ingroup tripal_db
  27. */
  28. function tripal_db_install() {
  29. // create the module's data directory
  30. tripal_create_moddir('tripal_db');
  31. }
  32. /**
  33. * Implementation of hook_uninstall().
  34. *
  35. * @ingroup tripal_db
  36. */
  37. function tripal_db_uninstall() {
  38. }