You are here

function domain_settings_setup_ok in Domain Access 6.2

Small helper function to determine whether this file was included correctly in the user's settings.php

If it was included at the right time then cache.inc shouldn't be included yet and the function 'cache_get' not be defined.

When the function is called first (from within this file) the state is saved in a static variable, every later call will return that boolean value.

Return value

TRUE if settings.inc was included correctly in settings.php, else FALSE

2 calls to domain_settings_setup_ok()
settings.inc in ./settings.inc
settings.inc
_domain_bootstrap in ./domain.bootstrap.inc
Calls individual bootstrap phases.

File

./settings.inc, line 37
settings.inc

Code

function domain_settings_setup_ok() {
  static $state = NULL;
  if ($state === NULL) {
    $state = !function_exists('cache_get');
  }
  return $state;
}