From 5468b47b91ee040b35d30f7d8a79c66fba51531d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jul 2009 19:53:18 +0000 Subject: - Patch #227232 by dopry, c960657, jmstacey, pwolanin, aaron, drewish: added initial support for PHP file wrappers. --- modules/system/system.module | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'modules/system/system.module') 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 @@ -1157,6 +1157,29 @@ function system_library() { return $libraries; } +/** + * 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. * -- cgit v1.2.3