function tripal_phylogeny_requirements

2.x tripal_phylogeny.install tripal_phylogeny_requirements($phase)
3.x tripal_phylogeny.install tripal_phylogeny_requirements($phase)

Implementation of hook_requirements().

Related topics

File

tripal_phylogeny/tripal_phylogeny.install, line 70
Installation of the phylotree module

Code

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