You are here

function hook_amazons3_command_prepare_alter in AmazonS3 7.2

Allows modules to alter the arguments to an S3 command.

Parameters

string &$name: The name of the command being prepared, such as 'HeadObject'.

&$args: An array of parameters used to create the command.

See also

hook_amazons3_command_prepare()

1 invocation of hook_amazons3_command_prepare_alter()
CompositeFactory::factory in src/CompositeFactory.php

File

./amazons3.api.php, line 47
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_alter(&$name, &$args) {
  if ($args['Bucket'] == 'bucket.example.com') {
    $args['ResponseCacheControl'] = 'no-cache';
  }
}