You are here

function base_path in Drupal 6

Same name and namespace in other branches
  1. 8 core/includes/common.inc \base_path()
  2. 4 includes/common.inc \base_path()
  3. 5 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 /.

20 calls to base_path()
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
drupal_add_js in includes/common.inc
Add a JavaScript file, setting or inline code to the page.
drupal_build_css_cache in includes/common.inc
Aggregate and optimize CSS files, putting them in the files directory.
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page.
drupal_get_js in includes/common.inc
Returns a themed presentation of all JavaScript code for the current page.

... See full list

File

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

Code

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