function tripal_core_is_chado_installed

2.x tripal_core.DEPRECATED.api.inc tripal_core_is_chado_installed()
3.x tripal_core.DEPRECATED.inc tripal_core_is_chado_installed()
1.x tripal_core_chado.api.inc tripal_core_is_chado_installed()

Check whether chado is installed (either in the same or a different database)

Return value

TRUE/FALSE depending upon whether chado is installed.

Related topics

15 calls to tripal_core_is_chado_installed()
tripal_analysis_requirements in tripal_analysis/tripal_analysis.install
Implementation of hook_requirements().
tripal_bulk_loader_requirements in tripal_bulk_loader/tripal_bulk_loader.install
Implementation of hook_requirements().
tripal_contact_requirements in tripal_contact/tripal_contact.install
Implementation of hook_requirements().
tripal_core_init in tripal_core/tripal_core.module
Implements hook_init(). Used to set the search_path, create default content and set default variables.
tripal_core_is_chado_local in tripal_core/api/tripal_core_chado.api.inc
Check whether chado is installed local to the Drupal database in its own Chado schema.

... See full list

File

tripal_core/api/tripal_core_chado.api.inc, line 3740
The Tripal Core API

Code

function tripal_core_is_chado_installed() {
  global $db_url, $db_type;

  // first check if chado is in the db_url of the
  // settings.php file
  if (is_array($db_url)) {
    if (isset($db_url['chado'])) {
      return TRUE;
    }
  }

  // check to make sure the chado schema exists
  return tripal_core_chado_schema_exists();
}