| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | 
							- <?php
 
- /**
 
-  * @file
 
-  * Contains functions related to the installation of this module
 
-  */
 
- /**
 
-  * Implements hook_disable().
 
-  * Disable default views when module is disabled
 
-  *
 
-  * @ingroup tripal_db
 
-  */
 
- function tripal_db_disable() {
 
-   // Disable all default views provided by this module
 
-   require_once("tripal_db.views_default.inc");
 
-   $views = tripal_db_views_default_views();
 
-   foreach (array_keys($views) as $view_name) {
 
-     tripal_disable_view($view_name,FALSE,array('suppress_error' => TRUE));
 
-   }
 
- }
 
- /**
 
-  * Implementation of hook_requirements().
 
-  *
 
-  * @ingroup tripal_db
 
-  */
 
- function tripal_db_requirements($phase) {
 
-   $requirements = array();
 
-   if ($phase == 'install') {
 
-     // make sure chado is installed
 
-     if (!$GLOBALS["chado_is_installed"]) {
 
-       $requirements ['tripal_db'] = array(
 
-           'title' => "tripal_db",
 
-           'value' => "ERROR: Chado must be installed before this module can be enabled",
 
-           'severity' => REQUIREMENT_ERROR,
 
-       );
 
-     }
 
-   }
 
-   return $requirements;
 
- }
 
- /**
 
-  * Implementation of hook_install().
 
-  *
 
-  * @ingroup tripal_db
 
-  */
 
- function tripal_db_install() {
 
- }
 
- /**
 
-  * Implementation of hook_uninstall().
 
-  *
 
-  * @ingroup tripal_db
 
-  */
 
- function tripal_db_uninstall() {
 
- }
 
- /**
 
-  * Implementation of hook_update_dependencies().
 
-  *
 
-  * It specifies a list of other modules whose updates must be run prior to
 
-  * this one.  It also ensures the the Tripal API is in scope for site
 
-  * upgrades when tripal_core is disabled.
 
-  */
 
- function tripal_db_update_dependencies() {
 
-   $dependencies = array();
 
-   return $dependencies;
 
- }
 
 
  |