Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
294
Merge Requests
294
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
c4c3e0a2
Commit
c4c3e0a2
authored
May 01, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#432864
by mcrittenden, sun: documentation improvements for base_url().
parent
9fd65b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
includes/common.inc
includes/common.inc
+6
-10
No files found.
includes/common.inc
View file @
c4c3e0a2
...
...
@@ -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'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment