function base_path

cis7 base_path()
cle7 base_path()
elmsmedia7 base_path()
icor7 base_path()
meedjum_blog7 base_path()
mooc7 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 "/".


108 calls to base_path()
adaptivetheme_preprocess_html in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Preprocess variables for html.tpl.php
admin_menu_links_icon in sites/all/modules/ulmus/admin_menu/
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/
@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 variables for html.tpl.php
advagg_admin_toggle_bypass_cookie in sites/all/modules/ulmus/advagg/
Set or remove the AdvAggDisabled cookie.
advagg_advagg_context_alter in sites/all/modules/ulmus/advagg/
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


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


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



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.