summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-01 16:45:52 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-01 16:45:52 +0000
commitc4c3e0a2a5a489f3c92a4122271b7d66cee3d656 (patch)
tree6c59ad30bff5a69535129438ff8e67edcdf7d0cb
parent9fd65b6617f89e918392c9ea8c4ebc93fb4687e6 (diff)
downloadbrdo-c4c3e0a2a5a489f3c92a4122271b7d66cee3d656.tar.gz
brdo-c4c3e0a2a5a489f3c92a4122271b7d66cee3d656.tar.bz2
- Patch #432864 by mcrittenden, sun: documentation improvements for base_url().
-rw-r--r--includes/common.inc16
1 files changed, 6 insertions, 10 deletions
diff --git a/includes/common.inc b/includes/common.inc
index c52102b8b..046c9951a 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1946,18 +1946,14 @@ function drupal_get_path($type, $name) {
}
/**
- * Returns the base URL path of the Drupal installation, i.e.,
- * the directory where Drupal is installed. At the very least,
- * this will return "/".
+ * Return the base URL path (i.e., directory) of the Drupal installation.
*
- * NOTE: base_path prefixes and suffixes a "/" onto the returned
- * path if the path is not empty. See examples below.
+ * base_path() prefixes and suffixes a "/" onto the returned path if the path is
+ * not empty. At the very least, this will return "/".
*
- * Example #1: Drupal installed at "http://yoursite.com" means
- * this will just return "/" because the path is empty.
- *
- * Example #2: Drupal installed at "http://yoursite.com/drupal/folder"
- * means this function will return "/drupal/folder/".
+ * Examples:
+ * - http://example.com returns "/" because the path is empty.
+ * - http://example.com/drupal/folder returns "/drupal/folder/".
*/
function base_path() {
return $GLOBALS['base_path'];