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 /.

▾ 20 functions call 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.
phptemplate_get_ie_styles in themes/garland/template.php
Generates IE CSS links for LTR and RTL languages.
search_index in modules/search/search.module
Update the full-text search index for a particular item.
system_clean_url_settings in modules/system/system.admin.inc
Form builder; Configure Clean URL settings.
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in includes/theme.inc
Process variables for page.tpl.php
theme_color_scheme_form in modules/color/color.module
Theme color form.
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_image_button in includes/form.inc
Theme a form image button.
update_info_page in ./update.php
update_results_page in ./update.php
url in includes/common.inc
Generate a URL from a Drupal menu path. Will also pass-through existing URLs.
_color_page_alter in modules/color/color.module
Callback for the theme to alter the resources used.
_color_rewrite_stylesheet in modules/color/color.module
Rewrite the stylesheet to match the colors in the palette.

Code

includes/common.inc, line 1713

<?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.