file_default_scheme

  1. drupal
    1. 7
Versions
7 file_default_scheme()

Get the default file stream implementation.

Return value

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

Related topics

▾ 11 functions call file_default_scheme()

file_build_uri in drupal/includes/file.inc
Given a relative path, construct a URI into Drupal's default files location.
file_save_data in drupal/includes/file.inc
Save a string to the specified destination and create a database file entry.
image_install in drupal/modules/image/image.install
Implements hook_install().
image_style_flush in drupal/modules/image/image.module
Flush cached media for a style.
image_style_path in drupal/modules/image/image.module
Return the URI of an image when using a style.
image_uninstall in drupal/modules/image/image.install
Implements hook_uninstall().
system_requirements in drupal/modules/system/system.install
Test and report Drupal installation requirements.
system_update_7060 in drupal/modules/system/system.install
Create fields in preparation for migrating upload.module to file.module.
system_update_7061 in drupal/modules/system/system.install
Migrate upload.module data to the newly created file field.
user_admin_settings in drupal/modules/user/user.admin.inc
Form builder; Configure user settings for this site.
user_save in drupal/modules/user/user.module
Save changes to a user account or add a new user.

Code

drupal/includes/file.inc, line 261

<?php
function file_default_scheme() {
  return variable_get('file_default_scheme', 'public');
}
?>