function base_path

cis7 common.inc base_path()
cle7 common.inc base_path()
elmsmedia7 common.inc base_path()
icor7 common.inc base_path()
meedjum_blog7 common.inc base_path()
mooc7 common.inc base_path()

Returns the base URL path (i.e., directory) of the Drupal installation.

base_path() adds a "/" to the beginning and end of the returned path if the path is not empty. At the very least, this will return "/".

Examples:

102 calls to base_path()
adaptivetheme_preprocess_html in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for html.tpl.php
admin_menu_links_icon in sites/all/modules/ulmus/admin_menu/admin_menu.inc
Build icon menu links; mostly containing maintenance helpers.
advagg_js_cdn_js_alter in sites/all/modules/ulmus/advagg/advagg_js_cdn/advagg_js_cdn.module
Implements hook_js_alter().
at_core_submit_reponsive in sites/all/themes/ulmus/adaptivetheme/at_core/inc/forms/at_core.submit.responsive.inc
@file Build and save the responsive layouts and styles
aurora_preprocess_block in sites/all/themes/ulmus/aurora/template.php

... See full list

23 string references to 'base_path'
adaptivetheme_preprocess_html in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for html.tpl.php
advagg_admin_toggle_bypass_cookie in sites/all/modules/ulmus/advagg/advagg.admin.inc
Set or remove the AdvAggDisabled cookie.
advagg_advagg_context_alter in sites/all/modules/ulmus/advagg/advagg.advagg.inc
Implements hook_advagg_context_alter().
advagg_current_hooks_hash_array in sites/all/modules/ulmus/advagg/advagg.module
Get an array of all hooks and settings that affect aggregated files contents.
advagg_get_root_files_dir in sites/all/modules/ulmus/advagg/advagg.module
Get the CSS & JS path for advagg.

... See full list

File

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

Code

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