globals.php

Version

1.3 (checked in on 2008/01/26 at 03:25:29 by drumm)

Description

These are the global variables that Drupal uses.

Globals

Namesort iconDescription
$active_dbActive database connection. See alsodb_set_active
$base_pathThe base path of the drupal installation. At least will default to /. See alsoconf_init
$base_rootThe root URL of the host excludes the path. See alsoconf_init
$base_theme_infoAn array of objects that reperesent the base theme. For documentation of the theme object see _init_theme().
$base_urlThe base URL of the drupal installation. See alsoconf_init
$channelAn associative array containing title, link, description and other keys. The link should be an absolute URL. See alsoaggregator_element_start
$confThe path to the configuration directory as set by conf_path().
$cookie_domainThe domain to be used form session cookies.
$custom_themeName of custom theme to override default theme. See alsoinit_theme
$db_prefixThe prefix to be placed on all database tables.
$db_typeThe type of database being used.
$db_urlThe url of the database. Thorough documentation provided in default.settings.php.
$elementStructured array describing the data to be rendered. See alsoaggregator_element_start
$forum_topic_list_headerAn array of topic header information.
$idActive statistics record id.
$imageCurrent image tag used by aggregator.
$installed_profileThe name of the profile that has just been installed.
$install_localeThe locale to use durring installation See alsost
$itemGeneral string or array. See alsoaggregator_element_start
$itemsArray of items used by aggregator. See alsoaggregator_element_start
$languageAn array containing the information for the active language.
$last_resultResource of the query executed.
$menu_adminBoolean indicating that a menu administrator is running the menu access check.
$multibyteThe current multibyte mode. Possible values: UNICODE_ERROR, UNICODE_SINGLEBYTE, UNICODE_MULTIBYTE.
$nidActive blog node id.
$pager_page_arrayResult of pager_query() that is utilized by other functions.
$pager_totalArray 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_itemsArray 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().
$profileThe name of the currently installed profile.
$queriesArray of queries that have been executed.
$recent_activityRecent activity statistics generated by statistics_exit().
$tagActive tag name. See alsoaggregator_element_start
$themeName of the active theme.
$theme_engineThe active theme engine related to the active theme.
$theme_infoActive theme object. For documentation of the theme object see _init_theme(). See also_init_theme
$theme_keyName of the active theme. See alsoinit_theme
$theme_pathPath to the active theme.
$timersStores timers that have been created by timer_start(). See alsotimer_start
$update_free_accessAccess control for update.php script. Allows the update.php script to be run when not logged in as and administrator.
$update_modeDisabled caling hook_boot() and hook_exit() during the update process (update.php) since the database is in a largely unknown state. See alsodrupal_goto
$userRepresentation of the current user. Stores preferences and other user information.
$xrds_current_serviceArray used by XRDS XML parser for OpenID to track parsing state.
$xrds_open_elementsArray used by XRDS XML parser for OpenID to track parsing state.
$xrds_servicesArray used by XRDS XML parser for OpenID to track parsing state.
 
 

Drupal is a registered trademark of Dries Buytaert.