diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-27 19:53:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-27 19:53:18 +0000 |
commit | 5468b47b91ee040b35d30f7d8a79c66fba51531d (patch) | |
tree | dd1dd2c05885ae70c3933be545f65abf4f8229fc /modules/system/system.module | |
parent | 1aec298314454b67fbc18738c3ffa6f12a14dd59 (diff) | |
download | brdo-5468b47b91ee040b35d30f7d8a79c66fba51531d.tar.gz brdo-5468b47b91ee040b35d30f7d8a79c66fba51531d.tar.bz2 |
- Patch #227232 by dopry, c960657, jmstacey, pwolanin, aaron, drewish: added initial support for PHP file wrappers.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 23 |
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 |