base_path

4.7 common.inc base_path()
5 common.inc base_path()
6 common.inc base_path()
7 common.inc base_path()
8 common.inc base_path()

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

Related topics

217 calls to base_path()

18 string references to 'base_path'

File

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

Code

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