8.2.x common.inc base_path()
8.0.x common.inc base_path()
8.1.x common.inc base_path()
4.7.x common.inc base_path()
5.x common.inc base_path()
6.x common.inc base_path()
7.x 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.mysql.inc
Initialize a database connection.
db_connect in includes/database.mysqli.inc
Initialise 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

1 string reference to 'base_path'
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. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…


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


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