function tripal_organism_requirements

2.x tripal_organism.install tripal_organism_requirements($phase)
3.x tripal_organism.install tripal_organism_requirements($phase)
1.x tripal_organism.install tripal_organism_requirements($phase)

Implementation of hook_requirements().

Related topics

File

legacy/tripal_organism/tripal_organism.install, line 88
Functions pertaining to the install/uninstall of this module

Code

function tripal_organism_requirements($phase) {
  $requirements = array();
  if ($phase == 'install') {
    // make sure chado is installed
    if (!$GLOBALS["chado_is_installed"]) {
      $requirements['tripal_organism'] = array(
        'title' => "tripal_organism",
        'value' => "ERROR: Chado must be installed before this module can be enabled",
        'severity' => REQUIREMENT_ERROR,
      );
    }
  }
  return $requirements;
}