function file_default_scheme

Same name in other branches
  1. 8.9.x 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

21 calls to file_default_scheme()
FileDirectoryTest::testFileCheckDirectoryHandling in modules/simpletest/tests/file.test
Test directory handling functions.
FileDirectoryTest::testFileCheckLocalDirectoryHandling in modules/simpletest/tests/file.test
Test local 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.

... 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 263

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.