Same name and namespace in other branches
  1. 4.7.x includes/file.inc \file_directory_path()
  2. 6.x includes/file.inc \file_directory_path()

Determine the default 'files' directory.

Return value

A string containing the path to Drupal's 'files' directory.

Related topics

13 calls to file_directory_path()
color_scheme_form_submit in modules/color/color.module
Submit handler for color change form.
drupal_get_css in includes/common.inc
Returns a themed representation of all stylesheets that should be attached to the page. It loads the CSS in order, with 'core' CSS first, then 'module' CSS, then 'theme' CSS files. This ensures proper cascading of styles…
fileupload_submit in developer/examples/fileupload.module
Implementation of hook_submit().
file_create_path in includes/file.inc
Make sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory.
file_create_url in includes/file.inc
Create the download path to a file.

... See full list

1 string reference to 'file_directory_path'
system_theme_settings in modules/system/system.module
Menu callback; display theme configuration for entire site and individual themes.

File

includes/file.inc, line 712
API for handling file uploads and server file management.

Code

function file_directory_path() {
  return variable_get('file_directory_path', 'files');
}