1 config.module config_file_download($uri)

Implements hook_file_download().

File

core/modules/config/config.module, line 100
Allows site administrators to modify configuration.

Code

function config_file_download($uri) {
  $scheme = file_uri_scheme($uri);
  $target = file_uri_target($uri);
  if ($scheme == 'temporary' && $target == 'config.tar.gz') {
    return array(
      'Content-disposition' => 'attachment; filename="config.tar.gz"',
    );
  }
}