bootstrap.inc
Version 1.206.2.13 (checked in on 2009/09/14 at 13:33:39 by goba)
Functions that need to be loaded on every Drupal request.
Constants
| Name | Description |
|---|---|
| CACHE_AGGRESSIVE | Indicates that page caching is using "aggressive" mode. This bypasses loading any modules for additional speed, which may break functionality in modules that expect to be run on each page load. |
| CACHE_DISABLED | Indicates that page caching is disabled. |
| CACHE_NORMAL | Indicates that page caching is enabled, using "normal" mode. |
| CACHE_PERMANENT | Indicates that the item should never be removed unless explicitly told to using cache_clear_all() with a cache ID. |
| CACHE_TEMPORARY | Indicates that the item should be removed at the next general cache wipe. |
| DRUPAL_ANONYMOUS_RID | Role ID for anonymous users; should match what's in the "role" table. |
| DRUPAL_AUTHENTICATED_RID | Role ID for authenticated users; should match what's in the "role" table. |
| DRUPAL_BOOTSTRAP_ACCESS | Fourth bootstrap phase: identify and reject banned hosts. |
| DRUPAL_BOOTSTRAP_CONFIGURATION | First bootstrap phase: initialize configuration. |
| DRUPAL_BOOTSTRAP_DATABASE | Third bootstrap phase: initialize database layer. |
| DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE | Second bootstrap phase: try to call a non-database cache fetch routine. |
| DRUPAL_BOOTSTRAP_FULL | Final bootstrap phase: Drupal is fully loaded; validate and fix input data. |
| DRUPAL_BOOTSTRAP_LANGUAGE | Seventh bootstrap phase: find out language of the page. |
| DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE | Sixth bootstrap phase: load bootstrap.inc and module.inc, start the variable system and try to serve a page from the cache. |
| DRUPAL_BOOTSTRAP_PATH | Eighth bootstrap phase: set $_GET['q'] to Drupal path of request. |
| DRUPAL_BOOTSTRAP_SESSION | Fifth bootstrap phase: initialize session handling. |
| LANGUAGE_LTR | Language written left to right. Possible value of $language->direction. |
| LANGUAGE_NEGOTIATION_DOMAIN | Domain based negotiation with fallback to default language if no language identified by domain. |
| LANGUAGE_NEGOTIATION_NONE | No language negotiation. The default language is used. |
| LANGUAGE_NEGOTIATION_PATH | Path based negotiation with fallback to user preferences and browser language detection if no defined path prefix identified. |
| LANGUAGE_NEGOTIATION_PATH_DEFAULT | Path based negotiation with fallback to default language if no defined path prefix identified. |
| LANGUAGE_RTL | Language written right to left. Possible value of $language->direction. |
| WATCHDOG_ALERT | |
| WATCHDOG_CRITICAL | |
| WATCHDOG_DEBUG | |
| WATCHDOG_EMERG | Severity levels, as defined in RFC 3164 http://www.faqs.org/rfcs/rfc3164.html See also watchdog() |
| WATCHDOG_ERROR | |
| WATCHDOG_INFO | |
| WATCHDOG_NOTICE | |
| WATCHDOG_WARNING |
Functions
| Name | Description |
|---|---|
| bootstrap_hooks | Define the critical hooks that force modules to always be loaded. |
| bootstrap_invoke_all | Call all init or exit hooks without including all modules. |
| check_plain | Encode special characters in a plain-text string for display as HTML. |
| conf_init | Loads the configuration and sets the base URL, cookie domain, and session name correctly. |
| conf_path | Find the appropriate configuration directory. |
| drupal_anonymous_user | Generates a default anonymous $user object. |
| drupal_bootstrap | A 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 the Drupal database from a script without... |
| drupal_get_filename | Returns 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_messages | Return all messages that have been set. |
| drupal_init_language | Choose a language for the current page, based on site and user preferences. |
| drupal_is_denied | Perform an access check for a given mask and rule type. Rules are usually created via admin/user/rules page. |
| drupal_load | Includes a file with the provided type and name. This prevents including a theme, engine, module, etc., more than once. |
| drupal_maintenance_theme | Enables use of the theme system without requiring database access. |
| drupal_page_cache_header | Set HTTP headers in preparation for a cached page response. |
| drupal_page_header | Set HTTP headers in preparation for a page response. |
| drupal_set_message | Set a message which reflects the status of the performed operation. |
| drupal_unpack | Unserializes and appends elements from a serialized string. |
| drupal_unset_globals | Unsets all disallowed global variables. See $allowed for what's allowed. |
| drupal_validate_utf8 | Checks whether a string is valid UTF-8. |
| drupal_valid_http_host | Validate that a hostname (for example $_SERVER['HTTP_HOST']) is safe. |
| get_t | Return the name of the localisation function. Use in code that needs to run both during installation and normal operation. |
| ip_address | 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. |
| language_default | Default language used on the site |
| language_list | Get a list of languages set up indexed by the specified key |
| page_get_cache | Retrieve the current page from the cache. |
| referer_uri | Return the URI of the referring page. |
| request_uri | Since $_SERVER['REQUEST_URI'] is only available on Apache, we generate an equivalent using other environment variables. |
| timer_read | Read the current timer value without stopping the timer. |
| timer_start | Start the timer with the specified name. If you start and stop the same timer multiple times, the measured intervals will be accumulated. |
| timer_stop | Stop the timer with the specified name. |
| variable_del | Unset a persistent variable. |
| variable_get | Return a persistent variable. |
| variable_init | Load the persistent variable table. |
| variable_set | Set a persistent variable. |
| watchdog | Log a system message. |
| _drupal_bootstrap |
