function chado_is_installed

2.x tripal_core.chado_schema.api.inc chado_is_installed()
3.x tripal_chado.schema.api.inc chado_is_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

3 calls to chado_is_installed()
tripal_chado_install in tripal_chado/tripal_chado.install
tripal_chado_set_globals in tripal_chado/tripal_chado.module
This function is used to set the global Chado variables
tripal_core_is_chado_installed in legacy/tripal_core/api/tripal_core.DEPRECATED.inc
1 string reference to 'chado_is_installed'

File

tripal_chado/api/tripal_chado.schema.api.inc, line 321
Provides an application programming interface (API) for describing Chado tables.

Code

function chado_is_installed() {
  global $databases;

  // first check if chado is in the $databases variable of the settings.php file
  if (array_key_exists(chado_get_schema_name('chado'), $databases)) {
    return TRUE;
  }

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