base_path

Versions
4.7 – 7
base_path()

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

Related topics

▾ 13 functions call 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.
system_view_general in modules/system.module
theme_add_style in includes/theme.inc
Add a theme stylesheet to be included later. This is handled separately from drupal_set_html_head() to enforce the correct CSS cascading order.
theme_get_setting in includes/theme.inc
Retrieve a setting for the current theme. This function is designed for use from within themes & engines to determine theme settings made in the admin interface.
theme_image in includes/theme.inc
Return a themed image.
theme_maintenance_page in includes/theme.inc
update_finished_page in ./update.php
url in includes/common.inc
Generate a URL from a Drupal menu path. Will also pass-through existing URLs.
_update_178_url_fix in database/updates.inc

Code

includes/common.inc, line 1223

<?php
function base_path() {
  return $GLOBALS['base_path'];
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.