You are here

function commerce_file_module_implements_alter in Commerce File 7.2

Implements hook_module_implements_alter().

File

./commerce_file.module, line 110
Extends Commerce License with the ability to sell access to files.

Code

function commerce_file_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'file_download_headers_alter') {

    // Place this module's implementation of hook_file_download_headers_alter()
    // at the end of the invocation list. This allows other modules (like
    // file_download_count) to do their thing before the user is redirected
    // to S3.
    $group = $implementations['commerce_file'];
    unset($implementations['commerce_file']);
    $implementations['commerce_file'] = $group;
  }
}