bootstrap.inc

Version

1.96.2.10 (checked in on 2008/01/10 at 22:18:19 by killes)

Description

Functions that need to be loaded on every Drupal request.

Constants

Namesort iconDescription
CACHE_DISABLED
CACHE_ENABLED
CACHE_PERMANENT
CACHE_TEMPORARY
DRUPAL_ANONYMOUS_RID
DRUPAL_AUTHENTICATED_RID
DRUPAL_BOOTSTRAP_DATABASE
DRUPAL_BOOTSTRAP_FULL
DRUPAL_BOOTSTRAP_PAGE_CACHE
DRUPAL_BOOTSTRAP_PATH
DRUPAL_BOOTSTRAP_SESSION
WATCHDOG_ERROR
WATCHDOG_NOTICE
WATCHDOG_WARNING

Functions

Namesort iconDescription
bootstrap_hooksDefine the critical hooks that force modules to always be loaded.
bootstrap_invoke_allCall all init or exit hooks without including all modules.
cache_clear_allExpire data from the cache.
cache_getReturn data from the persistent cache.
cache_setStore data in the persistent cache.
check_plainEncode special characters in a plain-text string for display as HTML.
conf_initLoads the configuration and sets the base URL correctly.
conf_pathFind the appropriate configuration directory.
drupal_bootstrapA string describing a phase of Drupal to load. Each phase adds to the previous one, so invoking a later phase automatically runs the earlier phases too. The most important usage is that if you want to access Drupal database from a script without...
drupal_get_filenameReturns and optionally sets the filename for a system item (module, theme, etc.). The filename, whether provided, cached, or retrieved from the database, is only returned if the file exists.
drupal_get_messagesReturn all messages that have been set.
drupal_is_deniedPerform an access check for a given mask and rule type. Rules are usually created via admin/access/rules page.
drupal_loadIncludes a file with the provided type and name. This prevents including a theme, engine, module, etc., more than once.
drupal_maintenance_themeEnables use of the theme system without requiring database access. Since there is not database access no theme will be enabled and the default themeable functions will be called. Some themeable functions can not be used without the full Drupal API...
drupal_page_headerSet HTTP headers in preparation for a page response.
drupal_set_messageSet a message which reflects the status of the performed operation.
drupal_unpackUnserializes and appends elements from a serialized string.
drupal_unset_globalsUnsets all disallowed global variables. See $allowed for what's allowed.
drupal_validate_utf8Checks whether a string is valid UTF-8.
page_get_cacheRetrieve the current page from the cache.
referer_uriReturn the URI of the referring page.
request_uriSince request_uri() is only available on Apache, we generate an equivalent using other environment variables.
timer_readRead the current timer value without stopping the timer.
timer_startStart the timer with the specified name. If you start and stop the same timer multiple times, the measured intervals will be accumulated.
timer_stopStop the timer with the specified name.
variable_delUnset a persistent variable.
variable_getReturn a persistent variable.
variable_initLoad the persistent variable table.
variable_setSet a persistent variable.
watchdogLog a system message.
_drupal_bootstrap
 
 

Drupal is a registered trademark of Dries Buytaert.