function _s3fs_register_s3_as_public_schema in S3 File System 7.2
Same name and namespace in other branches
- 7.3 s3fs.install \_s3fs_register_s3_as_public_schema()
2 calls to _s3fs_register_s3_as_public_schema()
- s3fs_install in ./
s3fs.install - Implements hook_install().
- s3fs_update_7201 in ./
s3fs.install - Adds the s3:// schema to the list of public schemas.
File
- ./
s3fs.install, line 392 - Install, update and uninstall functions for the S3 File System module.
Code
function _s3fs_register_s3_as_public_schema() {
$public_schema = variable_get('file_public_schema', array(
'public',
));
if (!in_array('s3', $public_schema)) {
$public_schema[] = 's3';
}
variable_set('file_public_schema', $public_schema);
}