function tripal_bulk_loader_requirements

2.x tripal_bulk_loader.install tripal_bulk_loader_requirements($phase)
3.x tripal_bulk_loader.install tripal_bulk_loader_requirements($phase)
1.x tripal_bulk_loader.install tripal_bulk_loader_requirements($phase)

Implementation of hook_requirements().

Related topics

File

tripal_bulk_loader/tripal_bulk_loader.install, line 298
Install/Uninstalls, Enables/Disables this module.

Code

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