function tripal_natural_diversity_requirements

2.x tripal_natural_diversity.install tripal_natural_diversity_requirements($phase)
3.x tripal_natural_diversity.install tripal_natural_diversity_requirements($phase)
1.x tripal_natural_diversity.install tripal_natural_diversity_requirements($phase)

Implementation of hook_requirements().

Related topics

File

tripal_natural_diversity/tripal_natural_diversity.install, line 29
Implements hooks from the Schema API

Code

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