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

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

... See full list

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

... See full list

File

drupal/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');
}