summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 25ee5f1fb..bc35c9645 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1158,6 +1158,29 @@ function system_library() {
}
/**
+ * Implement hook_stream_wrappers().
+ */
+function system_stream_wrappers() {
+ return array(
+ 'public' => array(
+ 'name' => t('Public files'),
+ 'class' => 'DrupalPublicStreamWrapper',
+ 'description' => t('Public local files served by the webserver.'),
+ ),
+ 'private' => array(
+ 'name' => t('Private files'),
+ 'class' => 'DrupalPrivateStreamWrapper',
+ 'description' => t('Private local files served by Drupal.'),
+ ),
+ 'temporary' => array(
+ 'name' => t('Temporary files'),
+ 'class' => 'DrupalTemporaryStreamWrapper',
+ 'description' => t('Temporary local files for upload and previews.'),
+ )
+ );
+}
+
+/**
* Retrieve a blocked IP address from the database.
*
* @param $iid integer