drupal 7全局变量drupal 7全局变量是drupal开发过程中很重要的参考api.尽快的了解它们,方便我们在drupal站
drupal 7全局变量
drupal 7全局变量是drupal开发过程中很重要的参考api.尽快的了解它们,方便我们在drupal站点开发中恰当的使用这些变量。
$active_db
developer/globals.phpActive database connection.$base_path
developer/globals.phpThe base path of the drupal installation. At least will default to /.$base_root
developer/globals.phpThe root URL of the host excludes the path.$base_theme_info
developer/globals.phpAn array of objects that reperesent the base theme. For documentation of the
theme object see _init_theme().$base_url
developer/globals.phpThe base URL of the drupal installation.$channel
developer/globals.phpAn associative array containing title, link, description and other keys.
The link should be an absolute URL.$conf
./authorize.php $conf
developer/globals.phpArray of persistent variables stored in 'variable' table.$cookie_domain
developer/globals.phpThe domain to be used form session cookies.$custom_theme
developer/globals.phpName of custom theme to override default theme.$db_prefix
developer/globals.phpThe prefix to be placed on all database tables.$db_type
developer/globals.phpThe type of database being used.$db_url
developer/globals.phpThe url of the database. Thorough documentation provided in default.settings.php.$element
developer/globals.phpStructured array describing the data to be rendered.$forum_topic_list_header
developer/globals.phpAn array of topic header information.$id
developer/globals.phpActive statistics record id.$image
developer/globals.phpCurrent image tag used by aggregator.$installed_profile
developer/globals.phpThe name of the profile that has just been installed.$install_locale
developer/globals.phpThe locale to use during installation$item
developer/globals.phpGeneral string or array.$items
developer/globals.phpArray of items used by aggregator.$language
developer/globals.phpAn object containing the information for the active language.$last_result
developer/globals.phpResource of the query executed.$menu_admin
developer/globals.phpBoolean indicating that a menu administrator is running the menu access check.$multibyte
developer/globals.phpThe current multibyte mode.
Possible values: UNICODE_ERROR, UNICODE_SINGLEBYTE, UNICODE_MULTIBYTE.$nid
developer/globals.phpActive blog node id.$pager_page_array
developer/globals.phpResult of pager_query() that is utilized by other functions.$pager_total
developer/globals.phpArray 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
developer/globals.phpArray 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
developer/globals.phpThe name of the currently installed profile.$queries
developer/globals.phpArray of queries that have been executed.$recent_activity
developer/globals.phpRecent activity statistics generated by statistics_exit().$tag
developer/globals.phpActive tag name.$theme
developer/globals.phpName of the active theme.$theme_engine
developer/globals.phpThe active theme engine related to the active theme.$theme_info
developer/globals.phpActive theme object. For documentation of the theme object see _init_theme().$theme_key
developer/globals.phpName of the active theme.$theme_path
developer/globals.phpPath to the active theme.$timers
developer/globals.phpStores timers that have been created by timer_start().$update_free_access
developer/globals.phpAccess control for update.php script. Allows the update.phpscript to be run when
not logged in as and administrator.$update_mode
developer/globals.phpDisabled caling hook_boot() and hook_exit() during the update process (update.php) since
the database is in a largely unknown state.$user
modules/php/php.module $user
developer/globals.phpRepresentation of the current user. Stores preferences and other user information.$xrds_current_service
developer/globals.phpArray used by XRDS XML parser for OpenID to track parsing state.$xrds_open_elements
developer/globals.phpArray used by XRDS XML parser for OpenID to track parsing state.$xrds_services
developer/globals.phpArray used by XRDS XML parser for OpenID to track parsing state.