function base_path
7.x common.inc | base_path() |
6.x common.inc | base_path() |
Returns the base URL path of the Drupal installation. At the very least, this will always default to /.
20 calls to base_path()
- color_scheme_form_submit in drupal-6.x/
modules/ color/ color.module - Submit handler for color change form.
- drupal_add_js in drupal-6.x/
includes/ common.inc - Add a JavaScript file, setting or inline code to the page.
- drupal_build_css_cache in drupal-6.x/
includes/ common.inc - Aggregate and optimize CSS files, putting them in the files directory.
- drupal_get_css in drupal-6.x/
includes/ common.inc - Returns a themed representation of all stylesheets that should be attached to the page.
- drupal_get_js in drupal-6.x/
includes/ common.inc - Returns a themed presentation of all JavaScript code for the current page.
2 string references to 'base_path'
- template_preprocess_maintenance_page in drupal-6.x/
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 drupal-6.x/
includes/ theme.inc - Process variables for page.tpl.php
File
- drupal-6.x/
includes/ common.inc, line 1772 - Common functions that many Drupal modules will need to reference.
Code
function base_path() {
return $GLOBALS['base_path'];
}