You are here

function base_path in Drupal 5

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

21 calls to base_path()
chameleon_page in themes/chameleon/chameleon.theme
db_connect in includes/database.mysqli.inc
Initialise a database connection.
db_connect in includes/database.mysql.inc
Initialize a database connection.
db_connect in includes/database.pgsql.inc
Initialize a database connection.
drupal_build_css_cache in includes/common.inc
Aggregate and optimize CSS files, putting them in the files directory.

... See full list

File

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

Code

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