function file_default_scheme
7.x 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 drupal-7.x/
modules/ simpletest/ tests/ file.test - Test directory handling functions.
- FileSaveDataTest::testWithoutFilename in drupal-7.x/
modules/ simpletest/ tests/ file.test - Test the file_save_data() function when no filename is provided.
- FileTestCase::createDirectory in drupal-7.x/
modules/ simpletest/ tests/ file.test - Create a directory and assert it exists.
- FileTestCase::createFile in drupal-7.x/
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-7.x/
modules/ simpletest/ tests/ file.test - Delete a normal file.
14 string references to 'file_default_scheme'
- file_field_info in drupal-7.x/
modules/ file/ file.field.inc - Implements hook_field_info().
- ImageStylesPathAndUrlTestCase::_testImageStyleUrlAndPath in drupal-7.x/
modules/ image/ image.test - Test image_style_url().
- image_field_info in drupal-7.x/
modules/ image/ image.field.inc - Implements hook_field_info().
- RemoteFileDirectoryTest::setUp in drupal-7.x/
modules/ simpletest/ tests/ file.test - Sets up a Drupal site for running functional and integration tests.
- RemoteFileSaveUploadTest::setUp in drupal-7.x/
modules/ simpletest/ tests/ file.test - Sets up a Drupal site for running functional and integration tests.
File
- drupal-7.x/
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');
}