You are here

function file_default_scheme in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/file.inc \file_default_scheme()

Gets the default file stream implementation.

Return value

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

Related topics

20 calls to file_default_scheme()
FileDirectoryTest::testFileCheckDirectoryHandling in modules/simpletest/tests/file.test
Test directory handling functions.
FileSaveDataTest::testWithoutFilename in modules/simpletest/tests/file.test
Test the file_save_data() function when no filename is provided.
FileTestCase::createDirectory in modules/simpletest/tests/file.test
Create a directory and assert it exists.
FileTestCase::createFile in modules/simpletest/tests/file.test
Create a file and save it to the files table and assert that it occurs correctly.
FileUnmanagedDeleteRecursiveTest::testSingleFile in modules/simpletest/tests/file.test
Delete a normal file.

... See full list

15 string references to 'file_default_scheme'
file_field_info in modules/file/file.field.inc
Implements hook_field_info().
ImageStylesPathAndUrlTestCase::_testImageStyleUrlAndPath in modules/image/image.test
Test image_style_url().
image_field_info in modules/image/image.field.inc
Implements hook_field_info().
RemoteFileDirectoryTest::setUp in modules/simpletest/tests/file.test
Sets up a Drupal site for running functional and integration tests.
RemoteFileSaveUploadTest::setUp in modules/simpletest/tests/file.test
Sets up a Drupal site for running functional and integration tests.

... See full list

File

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

Code

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