You are here

function base_path in Drupal 4

Same name and namespace in other branches
  1. 8 core/includes/common.inc \base_path()
  2. 5 includes/common.inc \base_path()
  3. 6 includes/common.inc \base_path()
  4. 7 includes/common.inc \base_path()
  5. 9 core/includes/common.inc \base_path()

Returns the base URL path of the Drupal installation. At the very least, this will always default to /.

Related topics

13 calls to base_path()
chameleon_page in themes/chameleon/chameleon.theme
drupal_add_js in includes/common.inc
Add a JavaScript file to the output.
drupal_get_html_head in includes/common.inc
Retrieve output to be displayed in the head tag of the HTML page.
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine.
search_index in modules/search.module
Update the full-text search index for a particular item.

... See full list

File

includes/common.inc, line 1223
Common functions that many Drupal modules will need to reference.

Code

function base_path() {
  return $GLOBALS['base_path'];
}