function s3fs_update_7005 in S3 File System 7.2
Same name and namespace in other branches
- 7.3 s3fs.install \s3fs_update_7005()
- 7 s3fs.install \s3fs_update_7005()
Remove the extra amazons3 variables that are not necessary for compatibility with amazons3_cors.
File
- ./
s3fs.install, line 281 - Install, update and uninstall functions for the S3 File System module.
Code
function s3fs_update_7005() {
$variable_names = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'amazons3_%', 'LIKE')
->execute()
->fetchCol(0);
foreach ($variable_names as $name) {
if ($name != 'amazons3_bucket') {
variable_del($name);
}
}
}