function hook_amazons3_command_alter in AmazonS3 7.2
Allows modules to alter an S3 command after it has been created.
Parameters
\Guzzle\Service\Command\CommandInterface $command: The command that was created.
1 invocation of hook_amazons3_command_alter()
File
- ./amazons3.api.php, line 59 
- 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_alter(\Guzzle\Service\Command\CommandInterface $command) {
  if ($command
    ->getName('HeadObject')) {
    $command
      ->setOnComplete(function () {
      watchdog('amazons3', 'HeadObject was called.');
    });
  }
}