function hook_amazons3_command_prepare in AmazonS3 7.2
Allows modules to add arguments to an S3 command. Each S3 command corresponds to an S3 API call, such as 'GetObject'. The 's3-2006-03-01.php' file shipped with the AWS SDK has a complete listing of all supported commands and parameters under the 'operations' key in the array.
Parameters
string $name: The name of the command being prepared, such as 'HeadObject'.
array $args: An array of parameters used to create the command.
Return value
array $args Any additional arguments to add to the command.
1 invocation of hook_amazons3_command_prepare()
File
- ./
amazons3.api.php, line 29 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_amazons3_command_prepare($name, array $args) {
if ($name == 'GetObject') {
$args['ResponseCacheControl'] = 'no-cache';
}
return $args;
}