function file_default_scheme

Gets the default file stream implementation.

Return value

'public', 'private' or any other file scheme defined as the default.

Related topics

16 calls to file_default_scheme()
DirectoryTest::testFileCheckDirectoryHandling in drupal/core/modules/system/lib/Drupal/system/Tests/File/DirectoryTest.php
Test directory handling functions.
FileTestBase::createDirectory in drupal/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php
Create a directory and assert it exists.
FileTestBase::createUri in drupal/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php
Create a file and return the URI of it.
file_build_uri in drupal/core/includes/file.inc
Constructs a URI to Drupal's default files location given a relative path.
file_save_data in drupal/core/modules/file/file.module
Saves a file to the specified destination and creates a database entry.

... See full list

14 string references to 'file_default_scheme'
file_field_info in drupal/core/modules/file/file.field.inc
Implements hook_field_info().
ImageStylesPathAndUrlTest::_testImageStyleUrlAndPath in drupal/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php
Test image_style_url().
image_field_info in drupal/core/modules/image/image.field.inc
Implements hook_field_info().
RemoteFileDirectoryTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/File/RemoteFileDirectoryTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileSaveUploadTest::setUp in drupal/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

drupal/core/includes/file.inc, line 324
API for handling file uploads and server file management.

Code

function file_default_scheme() {
  return variable_get('file_default_scheme', 'public');
}