function awssdk_update_7501 in AWS SDK for PHP 7.5
Update configuration variables from 1.4.x to 1.5.x.
File
- ./
awssdk.install, line 33 - Provides installation functions.
Code
function awssdk_update_7501() {
$map = array(
'aws_secret_key' => 'aws_secret',
'aws_cloudfront_keypair_id' => 'aws_cloudfront_keypair',
'aws_cloudfront_private_key_pem' => 'aws_cloudfront_pem',
);
foreach ($map as $old => $new) {
if ($value = variable_get($old)) {
variable_set($new, $value);
}
variable_del($old);
}
}