|
|
|
|
|
|
|
|
|
|
|
conf_path(require_settings=True,
reset=False)
Find the appropriate configuration directory. |
source code
|
|
|
|
|
|
|
conf_init()
Loads the configuration and sets the base URL, cookie domain, and
session name correctly. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hooks()
Define the critical hooks that force plugins to always be loaded. |
source code
|
|
|
|
|
|
|
referer_uri()
Return the URI of the referring page. |
source code
|
|
|
|
|
|
|
|
|
|
request_uri()
Since php.SERVER['php.REQUEST_URI'] is only available on Apache, we
generate an equivalent using other environment variables. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
drupal_init_language()
Choose a language for the current page, based on site and user preferences. |
source code
|
|
|
|
|
|
|
|
|
|
ip_address(reset=False)
If Drupal is behind a reverse proxy, we use the X-Forwarded-For header
instead of $_SERVER['REMOTE_ADDR'], which would be the IP address of
the proxy server, and not the client's. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_registry_check_code(type_,
name)
Helper for registry_check_{interface, class}. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
registry_cache_path_files()
Save the files required by the registry for this path. |
source code
|
|
|
|
registry_load_path_files(return_=False)
registry_load_path_files |
source code
|
|
|
|
registry_get_hook_implementations_cache()
registry_get_hook_implementations_cache |
source code
|
|
|
|
__version__ = '$Revision: 1 $'
|
|
|
MAINTENANCE_MODE = False
|
|
|
CACHE_PERMANENT = 0
|
|
|
CACHE_TEMPORARY = -1
|
|
|
CACHE_DISABLED = 0
|
|
|
CACHE_NORMAL = 1
|
|
|
CACHE_AGGRESSIVE = 2
|
|
|
WATCHDOG_ALERT = 1
|
|
|
WATCHDOG_CRITICAL = 2
|
|
|
WATCHDOG_ERROR = 3
|
|
|
WATCHDOG_WARNING = 4
|
|
|
WATCHDOG_NOTICE = 5
|
|
|
WATCHDOG_INFO = 6
|
|
|
WATCHDOG_DEBUG = 7
|
|
|
DRUPAL_BOOTSTRAP_CONFIGURATION = 0
|
|
|
DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE = 1
|
|
|
DRUPAL_BOOTSTRAP_DATABASE = 2
|
|
|
DRUPAL_BOOTSTRAP_ACCESS = 3
|
|
|
DRUPAL_BOOTSTRAP_SESSION = 4
|
|
|
DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE = 5
|
|
|
DRUPAL_BOOTSTRAP_LANGUAGE = 6
|
|
|
DRUPAL_BOOTSTRAP_PATH = 7
|
|
|
DRUPAL_BOOTSTRAP_FULL = 8
|
|
|
DRUPAL_ANONYMOUS_RID = 9
|
|
|
DRUPAL_AUTHENTICATED_RID = 10
|
|
|
LANGUAGE_NEGOTIATION_NONE = 0
|
|
|
LANGUAGE_NEGOTIATION_PATH_DEFAULT = 1
|
|
|
LANGUAGE_NEGOTIATION_PATH = 2
|
|
|
LANGUAGE_NEGOTIATION_DOMAIN = 3
|