globals.php
Version 1.3.2.4 (checked in on 2009/03/30 at 05:53:06 by cha0s)
These are the global variables that Drupal uses.
Globals
| Name | Description |
|---|---|
| $active_db | Active database connection. |
| $base_path | The base path of the drupal installation. At least will default to /. |
| $base_root | The root URL of the host excludes the path. |
| $base_theme_info | An array of objects that reperesent the base theme. For documentation of the theme object see _init_theme(). |
| $base_url | The base URL of the drupal installation. |
| $channel | An associative array containing title, link, description and other keys. The link should be an absolute URL. |
| $conf | Array of persistent variables stored in 'variables' table. |
| $cookie_domain | The domain to be used form session cookies. |
| $custom_theme | Name of custom theme to override default theme. |
| $db_prefix | The prefix to be placed on all database tables. |
| $db_type | The type of database being used. |
| $db_url | The url of the database. Thorough documentation provided in default.settings.php. |
| $element | Structured array describing the data to be rendered. |
| $forum_topic_list_header | An array of topic header information. |
| $id | Active statistics record id. |
| $image | Current image tag used by aggregator. |
| $installed_profile | The name of the profile that has just been installed. |
| $install_locale | The locale to use during installation |
| $item | General string or array. |
| $items | Array of items used by aggregator. |
| $language | An object containing the information for the active language. |
| $last_result | Resource of the query executed. |
| $menu_admin | Boolean indicating that a menu administrator is running the menu access check. |
| $multibyte | The current multibyte mode. Possible values: UNICODE_ERROR, UNICODE_SINGLEBYTE, UNICODE_MULTIBYTE. |
| $nid | Active blog node id. |
| $pager_page_array | Result of pager_query() that is utilized by other functions. |
| $pager_total | Array of the total number of pages per pager. The key is will be 0 by defualt, but can be specified via the $element parameter of pager_query(). |
| $pager_total_items | Array of the total number of items per pager. The key is will be 0 by defualt, but can be specified via the $element parameter of pager_query(). |
| $profile | The name of the currently installed profile. |
| $queries | Array of queries that have been executed. |
| $recent_activity | Recent activity statistics generated by statistics_exit(). |
| $tag | Active tag name. |
| $theme | Name of the active theme. |
| $theme_engine | The active theme engine related to the active theme. |
| $theme_info | Active theme object. For documentation of the theme object see _init_theme(). |
| $theme_key | Name of the active theme. |
| $theme_path | Path to the active theme. |
| $timers | Stores timers that have been created by timer_start(). |
| $update_free_access | Access control for update.php script. Allows the update.php script to be run when not logged in as and administrator. |
| $update_mode | Disabled caling hook_boot() and hook_exit() during the update process (update.php) since the database is in a largely unknown state. |
| $user | Representation of the current user. Stores preferences and other user information. |
| $xrds_current_service | Array used by XRDS XML parser for OpenID to track parsing state. |
| $xrds_open_elements | Array used by XRDS XML parser for OpenID to track parsing state. |
| $xrds_services | Array used by XRDS XML parser for OpenID to track parsing state. |
