Projet

Général

Profil

Révision ca0757b9

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.api.php
338 338
  $headers['X-Powered-By'] = 'My Module';
339 339
}
340 340

  
341
/**
342
 * React to a file being downloaded.
343
 */
344
function hook_file_transfer($uri, array $headers) {
345
  // Redirect a download for an S3 file to the actual location.
346
  if (file_uri_scheme($uri) == 's3') {
347
    $url = file_create_url($uri);
348
    drupal_goto($url);
349
  }
350
}
351

  
341 352
/**
342 353
 * Decides which file type (bundle) should be assigned to a file entity.
343 354
 *

Formats disponibles : Unified diff