function tripal_core_set_globals
2.x tripal_core.module | tripal_core_set_globals() |
This function is used to set the global Chado variables
Related topics
1 call to tripal_core_set_globals()
- tripal_core.module in tripal_core/
tripal_core.module - The Tripal Core module
File
- tripal_core/
tripal_core.module, line 35 - The Tripal Core module
Code
function tripal_core_set_globals() {
// these global variables are meant to be accessed by all Tripal
// modules to find the chado version installed and if Chado is local.
// these variables are stored as globals rather than using the drupal_set_variable
// functions because the Drupal functions make databaes queries and for long
// running loaders we don't want those queries repeatedly.
$GLOBALS["chado_is_installed"] = chado_is_installed();
if ($GLOBALS["chado_is_installed"]) {
$GLOBALS["chado_is_local"] = chado_is_local();
$GLOBALS["chado_version"] = chado_get_version();
$GLOBALS["exact_chado_version"] = chado_get_version(TRUE);
}
}