1. drupal
    1. 8
    2. 7
7 – 8 file_default_scheme()

Get the default file stream implementation.

Return value

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

Related topics

▾ 21 functions call 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.
FileUnmanagedDeleteTest::testMissing in modules/simpletest/tests/file.test
Try deleting a missing file.
FileUnmanagedSaveDataTest::testFileSaveData in modules/simpletest/tests/file.test
Test the file_unmanaged_save_data() function.
file_build_uri in includes/
Given a relative path, construct a URI into Drupal's default files location.
file_save_data in includes/
Save a string to the specified destination and create a database file entry.
ImageAdminStylesUnitTest::testStyle in modules/image/image.test
General test to add a style, add/remove/edit effects to it, then delete it.
ImageToolkitGdTestCase::testManipulations in modules/simpletest/tests/image.test
Since PHP can't visually check that our images have been manipulated properly, build a list of expected color values for each of the corners and the expected height and widths for the final images.
image_install in modules/image/image.install
Implements hook_install().
image_style_flush in modules/image/image.module
Flush cached media for a style.
image_style_path in modules/image/image.module
Return the URI of an image when using a style.
image_uninstall in modules/image/image.install
Implements hook_uninstall().
SimpleTestFolderTestCase::testFolderSetup in modules/simpletest/simpletest.test
system_requirements in modules/system/system.install
Test and report Drupal installation requirements.
system_update_7060 in modules/system/system.install
Create fields in preparation for migrating upload.module to file.module.
system_update_7061 in modules/system/system.install
Migrate upload.module data to the newly created file field.
user_admin_settings in modules/user/
Form builder; Configure user settings for this site.
user_save in modules/user/user.module
Save changes to a user account or add a new user.


includes/, line 260

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